Ask Your Question
0

Why simplify doesn't work?

asked 12 years ago

ozik gravatar image

updated 12 years ago

calc314 gravatar image

Hi! My problem is that I don't want to use simplify_full(). It messes up the way my formulea look preety bad. Yet I have in them terms of the form:

f(x,y)=(x^y)^(1/y)

and these a left untouched by simplify(). Is there any way for sage to recognize, that f=x without simplify_full()?

.

(Here's what i mean by messed up formula:

var('x,b2,b1')

f1(x,b1,b2)= e^(-x/b2)/b2 - e^(-x/b1)/b1

f2(x,b1,b2)= x

f1=f1( x=log( (b1/b2)^(b1*b2/(b1-b2)) ) )

f2=f2( x=log( (b1/b2)^(b1*b2/(b1-b2)) ) )

show( f1.simplify_full() + f2.simplify_full()== (f1+f2).simplify_full() )

The lhs looks way better, doesn't it?)

.

Big thanks in advance for any comments!

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
4

answered 12 years ago

simplify_full() just runs the specialized simplify_*() routines one by one. You can call them individually and see if they give you better results.

sage: x.sim<tab>
x.simplify            x.simplify_full       x.simplify_rational
x.simplify_exp        x.simplify_log        x.simplify_trig
x.simplify_factorial  x.simplify_radical
Preview: (hide)
link

Comments

Great many thanks!

ozik gravatar imageozik ( 12 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 12 years ago

Seen: 675 times

Last updated: Nov 23 '12