Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Smfan  
#1 Posted : 08 June 2009 20:45:30(UTC)
Smfan

Rank: Newbie

Groups: Registered
Joined: 08/06/2009(UTC)
Posts: 7

How to solve:

x +y =7
x^2+y^2=25

Kiss
i cant let the smath080 to solve it, and havnt searched the helpful q&a or samples.

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Andrey Ivashov  
#2 Posted : 08 June 2009 21:12:40(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Smfan wrote:
How to solve:

x +y =7
x^2+y^2=25

Unfortunately, there is no ability to solve the equations set in the program. But it's for now...
Offline Smfan  
#3 Posted : 08 June 2009 21:30:03(UTC)
Smfan

Rank: Newbie

Groups: Registered
Joined: 08/06/2009(UTC)
Posts: 7

smath wrote:
Smfan wrote:
How to solve:

x +y =7
x^2+y^2=25

Unfortunately, there is no ability to solve the equations set in the program. But it's for now...



Thanks for instant reply,
I found occasionally the SMath and then like it,
I had thought it was my own reason ,
hope SMath go far
Offline jakobg  
#4 Posted : 19 June 2009 04:02:43(UTC)
jakobg


Rank: Member

Groups: Registered
Joined: 20/03/2009(UTC)
Posts: 21
Man
Location: Vienna, AUSTRIA

Hi,

Appropriate to this problem I tried to write some simple Newton Algorithm to solve such nonlinear equation systems. During this I found a bug I guess.

I wanted to calculate the inverse of a 2x2 Matrix with is A^-1=1/det(A)*[A22,-A12;-A21,A11].

When I enter this equation and solve symbolically I get as result something like:
A^-1=[det(A)*A22,-det(A)*A12;-det(A)*A21,det(A)*A11]
so it seems there is some problem with Matrix calculationsSad .

By the way I not succeeded to write the algorithm, but I don't know why Good

Jakob
Offline Andrey Ivashov  
#5 Posted : 19 June 2009 06:53:57(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Hello, Jakob.
I don't understand a problem.
Open in SMath Cloud
Please, can you show an example with your finding?
Offline jakobg  
#6 Posted : 19 June 2009 23:10:26(UTC)
jakobg


Rank: Member

Groups: Registered
Joined: 20/03/2009(UTC)
Posts: 21
Man
Location: Vienna, AUSTRIA

Hello,
I tried to, and the Live Version seems not to have this Problem even if I upload my Problemfile directly into the live Version.
I uploaded the sm File to rapidshare, so you can check it. I use Version 0.8.

http://rapidshare.com/files/246329547/Problem.sm

Thanks!
Jakob
Offline Andrey Ivashov  
#7 Posted : 20 June 2009 00:36:37(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Thank you for the file. It's true, this error was already fixed in SMath Studio and fix will be included into the next release, soon. SMath Studio Live always has the last compiled assemblies, that's why you can't see described error there.
Offline PCAdk  
#8 Posted : 04 September 2010 17:37:10(UTC)
PCAdk

Rank: Newbie

Groups: Registered
Joined: 26/08/2010(UTC)
Posts: 5
Location: DENMARK

Is there still not a solution?
Offline omorr  
#9 Posted : 05 September 2010 00:35:06(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello,

Just testing.
A←mat(a11,a12,a21,a22,2,2)
invA←1/det(A)*mat(a22,-a12,-a21,a11,2,2)
A^{-1}*A—mat({-a22*a11+a12*a21}/{a12*a21-a11*a22},0,0,1,2,2)
A*A^{-1}—mat({-a22*a11+a12*a21}/{a12*a21-a11*a22},0,0,1,2,2)
invA*A—mat({a22*a11-a12*a21}/{a11*a22-a21*a12},0,0,1,2,2)
A*invA—mat({a22*a11-a21*a12}/{a11*a22-a21*a12},0,0,{-a12*a21+a11*a22}/{a11*a22-a21*a12},2,2)
Is there any explanation of these results? Why we do not get simply just identity matrices?

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Andrey Ivashov  
#10 Posted : 05 September 2010 03:54:41(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
PCAdk wrote:
Is there still not a solution?

Not yet.

omorr wrote:
Is there any explanation of these results? Why we do not get simply just identity matrices?

Hmm, good question... just for information: here is what I've got when compared a results with Mathcad:


This is due to imperfection of SMath Studio simplification engine (and Mathcad as well as I see Biggrin)... will try to find the reason and fix it.

Regards.

Edited by user 05 September 2010 04:00:10(UTC)  | Reason: Not specified

Offline omorr  
#11 Posted : 05 September 2010 09:48:20(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello Andrey,

Here is a screenshot from an older Mathcad version (supported by Maple engine). I do not know the result from the recent Mcad versions (14,15).

It can simplify into identity matrix.
SMath will not simplify those expressions - they will remain the same.

Regards,
Radovan

P.S. Andrey, there's a long time since the Xcas plugin has been mentioned as a possibility for the alternative symbolic engine. As far as I know, some Xcas features are only implemented in the handheld systems. Could you please tell us how the things are going on regarding desktop systems and an alternative symbolic engine as a posibility.
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Andrey Ivashov  
#12 Posted : 05 September 2010 13:43:25(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Hello Radovan.

I'm adhere to the position that I am working on improving skills of SMath Studio. And I do not think, that spending my time on the any CAS plugin will improve the program (in fact, such plugin will even never be a part of distributive packages, because it will require for third-party libraries and will always have only support for one type of the program: Win PC, Linux PC, Win PPC). On the other hand I've made an ability to create plugins to extend calculation possibilities, so if it is really important someone can create such plugin.

Regards.
Offline omorr  
#13 Posted : 05 September 2010 19:12:44(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hej Andrey,

Sorry, did not make myself clear. I did not think about you, about making these plugins by yourself. It is mentioned many times that SMath can be expanded by using plugins. Just interested if you, or someone else, have the information that anyone is going to prepare such a plugin for desktop systems, or something symilar.
As I understood - correct me if I am wrong - Xcas plugin for Handheld PC has been made just as a test that this is possible. I think I was wrong having the impression that Xcas for desktop systems is in the developing stage Sad .

Regards,
Radovan

Edited by user 05 September 2010 19:15:30(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Andrey Ivashov  
#14 Posted : 05 September 2010 20:02:46(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Unfortunately I have no any information about CAS for desktop version of SMath Studio. And I've never started this work by myself. This is a bad news... but I have a good one:

This will be available for SMath Studio 0.90 (will think about possibility to create a plugin for 0.89 as well).

Regards.
Offline omorr  
#15 Posted : 05 September 2010 21:50:28(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hej Andrej

As mentioned many times - function for solving systems of nonlinear equations numerically is always welcome Good .

Btw., frome the previous screenshot - does the variable "vars" need to be here? Don't we just need "f(x)" as a function with vector "x" as argument returning a vector, and a vector of initial guess?. I suppose there is a simple explanation on this - f.e. to point out by "vars" which variables are "unknown", or something like that. Andrey, could you please put few words of explanation here as it is very important - just for my curiosity Good .

Regards,
Radovan

Edited by user 05 September 2010 22:11:45(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Andrey Ivashov  
#16 Posted : 05 September 2010 23:40:19(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Using of "vars" vector showing a common use case. Not only indexed variables can be used as a functions variables. One can use "a" and "b" instead of indexed "x", so that's why second argument is required.

Updated: "vars" also makes it possible to reorder roots in the vector-answer manually.

Regards.

Edited by user 05 September 2010 23:44:22(UTC)  | Reason: Not specified

Offline Andrey Ivashov  
#17 Posted : 06 September 2010 03:13:56(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
SMath Studio 0.89.6 Beta version available to test roots(..) and Jacob(..) functions.

Desktop Windows (desktop computer with Windows OS):
SMathStudioDesktop.0_89.6.Setup.msi (Date: 06.09.2010. File size: 1.39MB)
SMathStudioDesktop.0_89.6.Portable.exe (Date: 06.09.2010. File size: 17.34MB) - .Net Framework 2.0 doesn't required

Warning! Before installing SMathStudioDesktop.0_89.6.Setup.msi previous version of SMath Studio must be removed!

Best regards.
Users browsing this topic
Guest
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.