rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

inverse_jacobi_sn(x,0) #54

Closed rtoy closed 1 week ago

rtoy commented 1 week ago

Imported from SourceForge on 2024-07-01 17:07:16 Created by willisbl on 2009-07-14 11:21:47 Original: https://sourceforge.net/p/maxima/bugs/1708


inverse_jacobi_sn(x,0) simplifies to (($ASIN SIMP) $X) , but I think it should be ((%ASIN SIMP) $X) . One problem this causes is:

(%i109) inverse_jacobi_sn(x,0); (%o109) asin(x)

(%i110) diff(%,x); (%o110) 'diff(asin(x),x,1)

(%i111) ev(%,diff); (%o111) 1/sqrt(1-x^2)

rtoy commented 1 week ago

Imported from SourceForge on 2024-07-01 17:07:18 Created by rtoy on 2009-07-14 17:43:19 Original: https://sourceforge.net/p/maxima/bugs/1708/#5ebb


Probably caused by confusion of noun/verb. The offending code is line 1094:

  \(\(zerop1 m\)
   ;; asn\(x,0\) = F\(asin\(x\),0\) = asin\(x\)
   \(take '\($asin\) u\)\)

Should that be %asin? There are other places where this happens.

rtoy commented 1 week ago

Imported from SourceForge on 2024-07-01 17:07:20 Created by crategus on 2009-07-14 18:18:30 Original: https://sourceforge.net/p/maxima/bugs/1708/#a2dc


Yes, I think $asin has to be changed to %asin.

Remark: For all simlifying functions with an alias and reversealias on the property list only the noun form "%function " can be used in simplified Maxima expressions. This is the case for most elementary functions like the trig funtions. There are some exceptions like the beta function. I think this is inconsistent.

Dieter Kaiser

rtoy commented 1 week ago

Imported from SourceForge on 2024-07-01 17:07:22 Created by crategus on 2009-07-14 18:26:11 Original: https://sourceforge.net/p/maxima/bugs/1708/#64d3


Further comment:

The functions elliptic_e and elliptic_f are implemented as simplifying functions with the symbol $elliptic_e and $elliptic_f. The noun-form of this symbols is not known to Maxima and there is no alias and reversealias on the property list.

In this case the simplified expression has to contain the $-name too. By the way: We can produce some inconsistencies when implementing a function this way.

Dieter Kaiser

rtoy commented 1 week ago

Imported from SourceForge on 2024-07-01 17:07:24 Created by rtoy on 2009-07-15 14:12:47 Original: https://sourceforge.net/p/maxima/bugs/1708/#0d2e


I will fix the trig problem soon, and close this report.

I think a new bug report should be filed for the $elliptic_e/f/pi issue.

rtoy commented 1 week ago

Imported from SourceForge on 2024-07-01 17:07:26 Created by crategus on 2009-10-04 19:01:37 Original: https://sourceforge.net/p/maxima/bugs/1708/#d9e8


Fixed in ellipt.lisp revision 1.70. Closing this bug report.

Dieter Kaiser

rtoy commented 1 week ago

Imported from SourceForge on 2024-07-01 17:07:28 Created by crategus on 2009-10-04 19:01:41 Original: https://sourceforge.net/p/maxima/bugs/1708/#435c