Testing xCAS version 1.2.3-9 (2017) - 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: Testing xCAS version 1.2.3-9 (2017) (/thread-7619.html) |
Testing xCAS version 1.2.3-9 (2017) - compsystems - 01-17-2017 01:50 PM News: xCAS version 1.2.3-9. (2017) https://www-fourier.ujf-grenoble.fr/~parisse/giac.html Thank Mr. Bernard Parisse for his great development of an expert system in computational algebra. My native language is not English, I use a translator, maybe that's why the conversations sound a bit harsh or wrong. I notice some differences with GeoGebra (CAS view), of course this is also the version of hp-prime (the latter as it is not synchronized with the latest versions of XCAS) =( Bernard his great work is present in GeoGebra that is one of the most used software in the world and its growth is exponential. Thousands of downloads per day, thousands of math teachers using the CAS view. =) I Find a small difference xCAS-GeoGebra, Why does it happen? (xCAS) a + (b + c) == (a + b) + c -> false SIMPLIFY NONE & EXACT ON Thanks RE: Testing xCAS version 1.2.3-9 (2017) - parisse - 01-17-2017 06:49 PM There is denesting of sums without parenthesis (or with left parenthesis since it's the same) but not with right parenthesis. d1:=a+(b+c); size(d1); d2:=(a+b)+c; size(d2); == checks that the internal representation of the symbolic objects are the same. Therefore d1==d2 returns false RE: Testing xCAS version 1.2.3-9 (2017) - compsystems - 01-18-2017 01:55 AM Why the XCAS engine over GeoGebra give another output (the GG authors) are modifying the xCAS? RE: Testing xCAS version 1.2.3-9 (2017) - parisse - 01-18-2017 06:39 AM no, but they call their own parser before calling the giac parser. RE: Testing xCAS version 1.2.3-9 (2017) - DrD - 01-18-2017 11:20 AM I was doing something somewhat related to this topic, in CAS, which resulted in the warning message below. Is this perhaps related? Warning: the test a==b is performed by checking that the internal representation of regroup(a-b) is not 0. Therefore a==b may return false even if a and b are mathematically equal, if they have different internal representations. You can explicitly call a simplification function like simplify(a-b)==0 to avoid this. Warning, argument is not an equation, solving 0=0 This warning only pops up the first time my statement was processed, afterwards only the "Warning, argument is not an equation, solving 0=0" shows up. In my case, it was this snippet, which produces different results when used on the EMU and HC: (interesting: regroup(a,b) is a working, but uncatalogued, (internal), prime CAS command.) Code:
RE: Testing xCAS version 1.2.3-9 (2017) - parisse - 01-18-2017 12:15 PM I get {-110} on the emulator with expr (lowercase). RE: Testing xCAS version 1.2.3-9 (2017) - DrD - 01-18-2017 02:19 PM I wonder why I don't seem to get that. I have tried both upper and lower case expr(). (Lower case expr() gets changed to upper case EXPR() in the CAS history). *[Weird (update)]* I just used [shift] [esc] to clear the CAS history, and now, I'm also getting: solve(subst(expr(a),x = 60),y) ==> {-110} on the emulator. Prior to that, for the several times I tried it, the response was [[]]. I wonder what that was all about? (Why or did) clearing the history have anything to do with it? Yesterday, I was doing a lot of work with various commands, and the prime began returning error messages for things I know worked earlier. I finally thought to do a calculator 'reset', and everything since then began working properly, once again. Today, I was using the above example, many times, and only getting the empty matrix back. The same entry on the physical prime consistently returned {-110}. Incidentally, a companion problem ALWAYS worked on the emulator before and after clearing the CAS history: solve(subst(expr(a),y = 23),x) ==> {-13/2} I'm wondering now, if the x or y variables may have had some previous content (before I cleared the CAS history), and my example might have failed due to that. It's probably just a problem related to the emulator on my end. I'm sorry about that. RE: Testing xCAS version 1.2.3-9 (2017) - Han - 01-18-2017 02:53 PM Are 'x' and 'y' purged in the CAS view? Are there existing exported or app variables named 'x' and 'y'? Without clearing the history, using restart will do the job of "starting fresh" RE: Testing xCAS version 1.2.3-9 (2017) - DrD - 01-18-2017 04:12 PM I can't be sure that there wasn't something in the CAS variables x or y. (I don't think there was). Also, I don't think x or y (lower case vars) are legal in the apps. I had to reset the emulator yesterday, due to other unrelated issues, which kind of helps confirm that vars x and y were symbolic. Since it was the var y being solved for in the troublesome statement, maybe that one was the issue. It's working now, so I may never find out definitively. RE: Testing xCAS version 1.2.3-9 (2017) - compsystems - 01-19-2017 02:01 PM I would like with the help of you all, create a similar tutorial to CAS sympy for Python TUTORIAL http://docs.sympy.org/latest/tutorial/gotchas.html There are many undocumented commands and functions, for example regroup(x+3*x+(5*4/x)) -> 4*x+20/x =) Quote:Equals signs RE: Testing xCAS version 1.2.3-9 (2017) - Han - 01-19-2017 04:00 PM (01-19-2017 02:01 PM)compsystems Wrote: I would like with the help of you all, create a similar tutorial to CAS sympy for Python Maybe I'm not understanding your post, but a request for a tutorial for Sympy might be better answered on a Sympy forum. RE: Testing xCAS version 1.2.3-9 (2017) - compsystems - 01-19-2017 04:37 PM An online XCAS tutorial on hp-prime, with good examples like those shown in or inspired by http://docs.sympy.org/latest/tutorial/, since most of the hp-prime HELP examples are numeric incomplete docs of cmds, etc. RE: Testing xCAS version 1.2.3-9 (2017) - parisse - 01-19-2017 06:44 PM If you want to do that, I recommend to proceed in HTML5 with the javascript file giac.js as computing kernel. If you know latex, you can write a latex source file including giac.tex (see documentation in test.tex) and convert it to HTML5 with hevea. giac.tex and test.tex are in the doc directory of Xcas (/c/cygdrive/xcas/doc/ or /c/cygdrive/xcas64/doc on windows or /Applications/usr/share/giac/doc on mac or /usr/share/giac/doc on linux). |