[CAS] arc sine of a complex number - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: [CAS] arc sine of a complex number (/thread-2642.html) |
[CAS] arc sine of a complex number - compsystems - 12-17-2014 02:45 AM [home mode] ASIN(4.0+i) => 1.31861691808+2.09659645729*iok [CAS mode] ASIN(4.0+i) => "Error: Bad Argument Value" why the argument is a bad RE: [CAS] arc sine of a complex number - Helge Gabert - 12-17-2014 03:07 AM What are your flag settings? I get, in CAS, ASIN(4+i) unevaluated, and ASIN(4.+i) 1.31... + 2.09...*i, no problem. RE: [CAS] arc sine of a complex number - compsystems - 12-17-2014 03:17 AM [CAS mode] and use i (set) ASIN(4.0+i) => 1.31861691808+2.09659645729*i ok sorry for my bad English I think that instead of showing the error message "Error: Bad Argument Value" , should say set flag "use i" "use i" says use i to factor polynomials that relation has polynomials with complex numbers? RE: [CAS] arc sine of a complex number - Han - 12-17-2014 03:24 AM (12-17-2014 03:17 AM)compsystems Wrote: [CAS mode] and use i (set) Perhaps the CAS interprets (4+i) as a polynomial (of degree 0) with complex coefficients. (Just a guess on my part) RE: [CAS] arc sine of a complex number - Helge Gabert - 12-17-2014 03:25 AM I see what you are suggesting, but it could be very exhausting to come up with precise error messages for every eventuality a user could encounter. Yes, here you need to check "Use i." RE: [CAS] arc sine of a complex number - compsystems - 12-17-2014 03:45 AM Messages that launches the hpprime are truly disappointing. =( Is required an expert administrator user flags, a common user to read the argument is "Bad Argument Value", ask why. I ask because the input argument is a bad value? entry is a valid complex number. or should I ask switch flag to answer complex, as it does in the HP50 asin("hello") => "Error: Bad Argument Value" OK but not ASIN(4.0+i) => "Error: Bad Argument Value" :~( RE: [CAS] arc sine of a complex number - Helge Gabert - 12-17-2014 03:50 AM I don't disagree . . . flag switching like in the HP50G might be more desirable in this case. RE: [CAS] arc sine of a complex number - parisse - 12-17-2014 06:53 AM i is complex mode, I'm not responsible for the way it is described on the HP settings screen. I'll have a look, perhaps I can improve the error message. RE: [CAS] arc sine of a complex number - parisse - 12-17-2014 07:51 AM Well, I will probably remove the error, since it is only present on the Prime, not in Xcas. RE: [CAS] arc sine of a complex number - compsystems - 12-17-2014 04:20 PM (12-17-2014 06:53 AM)parisse Wrote: i is complex modeWhat is the difference between the flags "Complex" and "use I"? The message that launches the hpprime (asin(4.0+i) => "Error: Bad Argument Value" ) makes losing all the computational power of xcas (12-17-2014 07:51 AM)parisse Wrote: Well, I will probably remove the error Return the same input when the flag is disabled, suggests you can not solve. :~( asin(4.0+i) => asin(4.0+i) =( ideally show a dialog box saying that if you want to change a complex mode, this is already implemented in the CAS of HP50, what involution? must extract the best from the past HP50G are you agree with this request? +1 or -1 or indifferent, please vote solve(x^2+2*x+3 = 0,x) "use i [OFF]" => [] ok no real results solve(x^2+2*x+3 = 0,x) "use i [on]" => {√(2)*i-1,-√(2)*i-1} solve(x^2+2*x+3 = 0,x) "use i [OFF]" => great if also generates a message to change the flag, if the user does not want to change return [] PD: Please Parisse can improve the output of the expression, ordered the real part first solve(x^2+2*x+3 = 0,x) "use i [on]" => {-1+ √(2)*i, -1 - √(2)*i-1 } Naturally mathematical texts show real part + imaginary part , a+b*I, also for easy reading when the output expression is very large other request is to label the output only for the purpose of observing a more didactic output, this may be adding a new flag in configuration of the CAS solve(x^2+2*x+3 = 0,x) "use i [on] and tag[on]" => { x1:-1+ √(2)*i, x2:-1 - √(2)*i-1 } Thanks RE: [CAS] arc sine of a complex number - parisse - 12-17-2014 06:56 PM "Use i for factoring" is more restrictive than what complex mode does. For example, if complex mode is on, sqrt(x^2) returns x instead of |x|. On the HP port of giac, some functions like ln were returning errors if the argument would return a complex answer (like domain error on the TI) in non real mode. This was later removed, but I did not check everything, and functions that are not used often like asin/acos have the check. For the mode switch, my experience with the hp49/50/40 convinced me it was not such a good idea because it requires manual mode switchs after. For example if you make a parametric plot on the 50g, you end up in complex approx mode, and you must switch back to real exact for normal CAS operations (there are shortcuts to do that but non-geeks will not learn them). |