Error

 Previous Topic Next Topic
 LordMike #1 Posted : 01 May 2010 20:17:48(UTC) Rank: Advanced MemberGroups: Registered Joined: 24/10/2009(UTC)Posts: 52Location: Denmark How do I compare two formulas?Like, if I simplify by hand, or solve for x by hand - and I'd like to check if I did it correctly.What I want to compare, are two equations...For example:y = ax + bAnd then compare to:x = (y - b ) / aAnd have it reply with "True". As compared to if I wrote x = (- y - b ) / - a
 Wanna join the discussion?! Login to your SMath Studio Forum forum accountor Register a new forum account.
 omorr #2 Posted : 03 May 2010 05:32:23(UTC) Rank: AdministrationGroups: Registered, Administrators, Advanced MemberJoined: 23/06/2009(UTC)Posts: 1,734Was thanked: 312 time(s) in 266 post(s) Helo Mike,At the moment, for this kind of problem you have to use some CAS (Maxima maybe?)Code:`````` Solve over x >:: sol1:=solve(y=a*x+b,x) y - b [x = -----] a Solved by hand >:: sol2:=(-y-b)/a - y - b ------- a Compared >:: if(at(x,sol1)=sol2) then "true" else "false" false Compared >:: if(at(x,sol1)=(y-b)/a) then "true" else "false" true `````` Regards,RadovanEdited by user 03 May 2010 13:04:02(UTC)  | Reason: Not specified When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
 LordMike #3 Posted : 05 May 2010 04:35:18(UTC) Rank: Advanced MemberGroups: Registered Joined: 24/10/2009(UTC)Posts: 52Location: Denmark Ah, so it is not possible :PThanks for reply
 Andrey Ivashov #4 Posted : 09 May 2010 02:05:03(UTC) Rank: AdministrationGroups: Developers, Registered, Knovel Developers, Administrators, Advanced MemberJoined: 11/07/2008(UTC)Posts: 1,385Was thanked: 1623 time(s) in 544 post(s) LordMike wrote:Ah, so it is not possible :PWhy? (download source file)Best regards.
 omorr #5 Posted : 09 May 2010 03:12:22(UTC) Rank: AdministrationGroups: Registered, Administrators, Advanced MemberJoined: 23/06/2009(UTC)Posts: 1,734Was thanked: 312 time(s) in 266 post(s) Hello, I was thinking in this direction, but unfortunately this is not so simple. Please see the examples.Wrong answer "true", it should be "false":Neither "true" nor "false". If statement needs the numerical result of the logical contidion.Regards,Radovan When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
 Andrey Ivashov #6 Posted : 09 May 2010 03:35:01(UTC) Rank: AdministrationGroups: Developers, Registered, Knovel Developers, Administrators, Advanced MemberJoined: 11/07/2008(UTC)Posts: 1,385Was thanked: 1623 time(s) in 544 post(s) Ok, then we can use this stuff: (download source file)Regards.
 omorr #7 Posted : 09 May 2010 03:58:28(UTC) Rank: AdministrationGroups: Registered, Administrators, Advanced MemberJoined: 23/06/2009(UTC)Posts: 1,734Was thanked: 312 time(s) in 266 post(s) Hello Andrey,Yes, I think you are right . We were thinking on the same thing at this very moment.Regards,Radovan When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
 Users browsing this topic
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.