rtoy / maxima

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

atan2(2,0.3) gives non-float answer /FIX #1560

Closed rtoy closed 2 days ago

rtoy commented 2 days ago

Imported from SourceForge on 2024-07-04 19:40:42 Created by macrakis on 2003-05-06 00:49:09 Original: https://sourceforge.net/p/maxima/bugs/305


atan2(a,b) should be an approximate number (float or bfloat) whenever one of the arguments is approximate and the other is either approximate or an exact number.

This is not currently true. All the following give results involving %PI: atan2(-1.0,-1), atan2(-1.0b0,-1.0), atan2(- 2/3,-1.0b0) etc.

The attached code fixes this.

rtoy commented 2 days ago

Imported from SourceForge on 2024-07-04 19:40:43 Created by macrakis on 2003-05-06 00:49:09 Original: https://sourceforge.net/p/maxima/bugs/305/#2fa9


Attachments:

rtoy commented 2 days ago

Imported from SourceForge on 2024-07-04 19:40:47 Created by rtoy on 2003-08-03 13:07:22 Original: https://sourceforge.net/p/maxima/bugs/305/#2954


rtoy commented 2 days ago

Imported from SourceForge on 2024-07-04 19:40:50 Created by rtoy on 2003-08-03 13:07:22 Original: https://sourceforge.net/p/maxima/bugs/305/#9338


Logged In: YES user_id=28849

Suggested fix applied.