0
|
8161 Views
|
|
0 Total Likes
View groups...
Share
GROUPS:

# How to make logical tests for general function expressions

Posted 9 years ago
 hey matheamtica community, im working on a project and i got a problem. I want to perform a logical test in order to check if two expression are the same. my code is the following: test1 = (2 epsH r[b[t]] - b[t] (1 + r[b[t]])^2)/( b[t] (-2 epsH + b[t] (1 + r[b[t]]))) test2 = (2*epsH - (((1 + r[b[t]])*(2*epsH - b[t]*(1 + r[b[t]])))))/(b[ t]*(2*epsH - b[t] (1 + r[b[t]]))) test3 = test1 == test2 Expand[test3]  i mean i got the basics of doing logical tests f.e : In:= x = 5 Out= 5 In:= x == 7 Out= False  But i read in the documentation about "Equal" that the command "Expand" should do the deal for what i want but appareantly it isnt doing a logical test but rather expanding both expressions. I would be greatful if someone can gibve me a hand and maybe explain me what i misunderstood about the language of mathematica for this case. ty a lot for all answers
 Try Simplify instead of Expand In:= Simplify[test3] Out= True `