Post Reply 
Extra arguments (FLAGS) to c/solve and other CAS commands
03-27-2015, 08:15 PM (This post was last modified: 03-28-2015 02:14 PM by compsystems.)
Post: #1
Extra arguments (FLAGS) to c/solve and other CAS commands
Sorry for bad English

The hpprime is designed for educational environment no engineering. consequently simple improvements on CAS, increase the didactic power.

[HP PRIME CAS (2013)]
solve(x^2+x*y+y^2=0,y) => RETURNS {} :~[

cSolve(x^2+x*y+y^2=0,x) => RETURNS
{ (i*y*√(3)-y)/2,
(−i*y*√(3)-y)/2 } OK But the format is not eligible

cSolve(x^2+x*y+y^2=0,y) => RETURNS
{ (i*x*√(3)-x)/2,
(−i*x*√(3)-x)/2 }

That tells us the above equation, there is no solution in the real plane, only in the complex plane

[TI68K(1996) or TI NSPIRE CAS(2006)]
cSolve(x^2+x*y+y^2=0,x) => RETURNS
x = (- 1/2 + (√(3)/2)*i ) * y
x = (- 1/2 - √(3)/2)*i ) * y

cSolve(x^2+x*y+y^2=0,y) => RETURNS
y = (- 1/2 + (√(3)/2)*i) * x
y = (- 1/2 - √(3)/2)*i ) * x

shows also the solution as equation, with of the unknown variable, organizes the complex number a + b * i real part first and then imaginary part

if the output is best organized, the student detect that is an equation a straight line y=m*x+b, good is a degenerate conic

matlab can add optional flags to commands

My idea is to be incorporated into xcas and HPPime CAS

sample

[HP PRIME CAS+ (2015)]
solve(x^2+x*y+y^2=0,y, real) => RETURNS {}
solve(x^2+x*y+y^2=0,y, real, prettyPRT) => RETURNS "NO REAL SOLUTIONS"

solve(x^2+x*y+y^2=0,y, complex ) => RETURNS
{ (i*x*√(3)-x)/2,
(−i*x*√(3)-x)/2 }

solve(x^2+x*y+y^2=0,y, complex, prettyPRT ) => RETURNS
{ y = (- 1/2 + (√(3)/2)*i ) * x
y = (- 1/2 - √(3)/2)*i) * x }

GOOD IDEA? see the imaginary unit right into a complex expression

+1 or -1
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Extra arguments (FLAGS) to c/solve and other CAS commands - compsystems - 03-27-2015 08:15 PM



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