You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document default integration method behavior in docs
Add clear explanation that integrate() tries Risch first, then falls
back to RuleBasedMethod. This matches the README but was missing from
the main documentation page.
Changes:
- Added "Default Behavior" paragraph explaining Risch-first strategy
- Added example showing automatic fallback from Risch to Rule based
- Added examples of explicit method selection
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: docs/src/index.md
+28-1Lines changed: 28 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,11 @@ integrate(f, x, RischMethod(use_algebraic_closure=true)) # With options
39
39
40
40
## Integration Methods
41
41
42
-
SymbolicIntegration.jl provides two integration algorithms: Rule based and Risch method. Here is a quick table to see what they can integrate:
42
+
SymbolicIntegration.jl provides two integration algorithms: Risch method and Rule based method.
43
+
44
+
**Default Behavior:** When no method is explicitly specified, `integrate()` will first attempt the **Risch method**. If the Risch method fails (e.g., due to unsupported expressions like `sqrt(x)` or `abs(x)`), it will automatically fall back to the **Rule based method**. This ensures maximum coverage while prioritizing the theoretically complete Risch algorithm when applicable.
45
+
46
+
Here is a quick table to see what each method can integrate:
43
47
44
48
feature | Risch | Rule based
45
49
--------|-------|-----------
@@ -55,6 +59,29 @@ multiple symbols | ❌ | ✅
55
59
56
60
[→ See complete methods documentation](methods/overview.md)
57
61
62
+
### Example: Automatic Fallback Behavior
63
+
64
+
When no method is specified, the integration will try Risch first, then fall back to Rule based if needed:
65
+
66
+
```julia
67
+
# This uses sqrt which is not supported by Risch, so it falls back to RuleBasedMethod
0 commit comments