Commit ce6f21d
fix: add basic antiderivative rules for elementary functions
Add direct handling for basic integrals:
- e^x (parsed as ['Power', 'ExponentialE', 'x'])
- sin(x) → -cos(x)
- cos(x) → sin(x)
- ln(x) → x*ln(x) - x
- x^n → x^(n+1)/(n+1)
- 1/x → ln|x|
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 374f5de commit ce6f21d
1 file changed
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
642 | 687 | | |
643 | 688 | | |
644 | 689 | | |
| |||
0 commit comments