Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2071 | zjchen | 1 | |
2 | !goto $wims_read_parm |
||
3 | |||
4 | :def |
||
5 | title=Derivative |
||
6 | synonyme=Differentiation |
||
7 | input=function |
||
8 | !exit |
||
9 | |||
10 | :proc |
||
11 | |||
12 | x=!word 1 of $variable |
||
13 | !if $x=$empty |
||
14 | t=!varlist nofn $formula |
||
15 | t=!sort reverse nocase item $t |
||
16 | x=!item 1 of $t |
||
17 | !endif |
||
18 | !default x=x |
||
19 | o=!word 1 of $order |
||
20 | o=$[round($o)] |
||
21 | !if NaN isin $o or $o<1 or $o>100 |
||
22 | o= |
||
23 | !endif |
||
24 | !default o=1 |
||
25 | |||
26 | result=!exec maxima diff($formula,$x,$o); |
||
27 | !exit |
||
28 | |||
29 | :output |
||
30 | |||
31 | Derivative of |
||
32 | !if $o>1 |
||
33 | order $o of |
||
34 | !endif |
||
35 | !htmlmath $formula |
||
36 | with respect to $x: |
||
37 | <p><center> |
||
38 | !insmath $result |
||
39 | </center> <p> |
||
40 | !exit |
||
41 |