Howto simplify exponentsHow can I make axiom to do 2^a2^(2a) -> 2^(3*a) ?
Type: Expression Integer
Type: Expression Integer
But I cannot convince Axiom to do 2^(5a)/2^(4a) -> 2^a
Type: Expression Integer
Type: Expression Integer
Unfortunately this seemingly simple transformation does not seem to be easy to perform in Axiom but I have found two possible ways to do this. The first involves the normalize() operation. Unfortunately normalize takes the process one step too far. This can be undone with a simple rule.
Type: RewriteRule?(Integer,Integer,Expression Integer)
Type: Expression Integer
Type: Expression Integer
The second approach uses a single rule to do the whole job.
Type: RewriteRule?(Integer,Integer,Expression Integer)
Type: Expression Integer
How about 2^a*4^a ?
Type: Expression Integer
Type: Expression Integer
Here is one approach. First lets define a function that factors a power and a rule that applies this function.
Type: Void
Type: RewriteRule?(Integer,Integer,Expression Integer)
Now we can use the rule and simplify the result
axiom Compiling function powerFac with type (PositiveInteger,Variable a)
-> Expression Integeraxiom Compiling function powerFac with type (PositiveInteger,Polynomial
Integer) -> Expression Integer
Type: Expression Integer
Apparently, simplifyExp yields the desired result
Type: Expression Integer
But ... --Bill Page, Mon, 11 Oct 2004 12:48:08 -0500 reply The desired result was
Type: Expression Integer
doesn't do it. ... it does have some effect:
Type: Expression Integer
Type: Expression Integer
|