[Request] Control of algebraic expressions CAS
|
06-08-2016, 10:12 PM
(This post was last modified: 06-08-2016 10:20 PM by compsystems.)
Post: #9
|
|||
|
|||
RE: [Request] Control of algebraic expressions CAS
for Bernard
getOperator:=0; part1:=1; part2:=2; part(x^3/x^2); -> part(x^3 * 1/x^2) -> returns 2 OK part(x^3/x^2,getOperator); -> part(x^3 * 1/x^2,0) -> returns "*" OK part(x^3/x^2,part1); -> part(x^3 * 1/x^2, 1) -> returns x^3 OK part(x^3/x^2,part2); -> part(x^3 * 1/x^2, 2) -> returns 1/x^2 OK now part(quote(x^3/x^2)); -> part( '(x^3 / x^2)' ); -> returns 2 OK part(quote(x^3/x^2),getOperator); -> part( '(x^3 / x^2)', 0 ); -> returns "/" OK OK part(quote(x^3/x^2),part1); -> part( '(x^3 / x^2)', 1 ); -> returns x^3 OK part(quote(x^3/x^2),part2); -> part( '(x^3 / x^2)', 2 ); -> returns x^2 OK but expr1:=quote(x^3/x^2) ; part(expr1); -> part( '(x^3 / x^2)' ) -> returns 2 OK part(expr1,getOperator); -> part( '(x^3 / x^2)', 0 ); -> returns "*" ??????????? part(expr1,part1); -> part( '(x^3 / x^2)', 1 ); -> returns x^3 OK part(expr1,part2); -> part( '(x^3 / x^2)', 2 ); -> returns 1/x^2 ??????????? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)