Post Reply 
CAS: approx. sqrt?
09-05-2015, 03:47 AM
Post: #1
CAS: approx. sqrt?
I happened to run across this some time ago

sqrt(1+i) gets approximated right away in CAS, with the message:

"Warning, converting to approx. sqrt." ? Why?

But no automatic approximation with the 3-root or 4-root of 1+i.

   
Find all posts by this user
Quote this message in a reply
09-05-2015, 04:17 AM
Post: #2
RE: CAS: approx. sqrt?
Is your CAS configured to use complex numbers in the CAS settings?
Find all posts by this user
Quote this message in a reply
09-05-2015, 05:27 AM
Post: #3
RE: CAS: approx. sqrt?
Return exact symbolic result is checked, of course - -

Or do you mean include complex results in variable? That doesn't seem to matter.

What do you get?
Find all posts by this user
Quote this message in a reply
09-05-2015, 06:48 AM
Post: #4
RE: CAS: approx. sqrt?
I have recently disabled exact sqrt for complex numbers on the Prime when they lead to complicated expressions that would take too much time to simplify (especially when mixed with other expressions) and are difficult to interrupt (because C++ exceptions are disabled on the Prime).
Find all posts by this user
Quote this message in a reply
09-05-2015, 02:58 PM
Post: #5
RE: CAS: approx. sqrt?
Thanks for the explanation,

but what about the 3-root and 4-root expressions? They stay in exact form. Why not have sqrt(complex #) simply also rewritten as e^(1/2*ln(complex number)? Or just leave it as sqrt(Complex #)? Will that really lead to too complicated, exact expressions further on?

If so, flashing the warning makes sense (as a suggestion), but the user can always hit the approx key anyway (at any time). I don't think that the CAS system should approximate by default - - the beauty of CAS is to enable exact computations.
Find all posts by this user
Quote this message in a reply
09-05-2015, 04:20 PM
Post: #6
RE: CAS: approx. sqrt?
There are limitations on a calculator, as explained above, aborting a too complex computation is sometimes not possible on the Prime because I can not compile with C++ exceptions enabled here.
Find all posts by this user
Quote this message in a reply
09-05-2015, 06:28 PM
Post: #7
RE: CAS: approx. sqrt?
OK, I understand.
Find all posts by this user
Quote this message in a reply
09-07-2015, 10:15 PM
Post: #8
RE: CAS: approx. sqrt?
Not to beat a dead horse, but has this been reported before?

CAS: (sqrt(x-1))^i and the Prime hangs.

There definitely are some issues with square roots and complex numbers
(Rev 8151).
Find all posts by this user
Quote this message in a reply
09-08-2015, 06:13 AM
Post: #9
RE: CAS: approx. sqrt?
I can not reproduce. Have you non default settings?
Find all posts by this user
Quote this message in a reply
09-08-2015, 02:44 PM
Post: #10
RE: CAS: approx. sqrt?
It happens if you don't add the parenthesis (sorry I typed that wrong in the above post)

just sqrt(x-1)^i,

and also if you hit simplify().

My settings are standard, except "use i" is checked, and simplify: "minimum."

The emulator hangs as well.
Find all posts by this user
Quote this message in a reply
09-09-2015, 07:24 AM
Post: #11
RE: CAS: approx. sqrt?
This has probably been fixed since last firmware release, as you can check with the latest version of Xcas.
Find all posts by this user
Quote this message in a reply
09-09-2015, 03:01 PM
Post: #12
RE: CAS: approx. sqrt?
Yes,

Xcas is OK, but this hasn't been fixed in the Prime firmware yet.
Find all posts by this user
Quote this message in a reply
Post Reply 




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