Dear all,

I'm new to axiom and have a problem with piecewise functions.

test1 (x | x < 10) == 2*x
test1 (x | x < 10) == 5*x^2
test1
-> 
   test1 (x | x < 10) == 2x
   test1 (x | ^ x < 10) == 5x
                                                   Type: FunctionCalled
test1 y
->
     2
   5y

I expected something like (if y < 10 then 2*y else 5*y**2).

How is it possible to pass a Variable to a piecewise function respecting
the pieces?

PS: Using a block and => or explicit if-then-else does not help.

-- 
Kind regards,
Stefan


_______________________________________________
Axiom-math mailing list
Axiom-math@nongnu.org
https://lists.nongnu.org/mailman/listinfo/axiom-math

Reply via email to