Post Reply 
The case of the disappearing angle units, or "the dangle of the angle"
08-02-2019, 01:31 PM
Post: #4
RE: The case of the disappearing angle units, or "the dangle of the angle"
On my XCas setup, I keep the default to RAD, and scale with deg = pi/180 if needed.
Switching back and forth between angle units is not worth the trouble.
Worse, sometimes it return wrong result.

Example:

XCas> deg := pi/180

XCas(RAD)> float(integrate(x+sin(x*deg), x = 30 .. 45)) // got back 571.605366361
XCas (DEG)> float(integrate(x+sin(x), x = 30 .. 45))       // OK, same as above

XCas(RAD)> float(integrate(x*sin(x*deg), x = 30 .. 45)) // got back 345.33893383
XCas (DEG)> float(integrate(x*sin(x), x = 30 .. 45))       // BAD !
Error while checking exact value with approximate value, returning both!
[-5.63193625867, 345.33893383]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: The case of the disappearing angle units, or "the dangle of the angle" - Albert Chan - 08-02-2019 01:31 PM



User(s) browsing this thread: 1 Guest(s)