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 omorr  
#1 Posted : 19 February 2012 14:45: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,

Here is the example of one of my working files presenting the solving of eleven nonlinear equations with eleven unknowns.
File - Primer38a.sm
Picture :


It seems that the standard Newton-Raphson will make the job done here, and I am quite satisfied for that. Unfortunately, the roots() function will not be useful for this example. Actually, I do not know if this could even be solved by roots() because the calculation took quite a long time - I gave it up after 10 min.

The solution presented here is not so elegant but I hope that it would be useful to someone. On the other hand, this is another of my "cry for help" :'( in order to potentially motivate some good willing people to extend the SMath with some more powerful numerical procedures. SMath deserves that in any sense.

Regards,
Radovan

Edited by user 28 February 2012 00:25:55(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"

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

Offline omorr  
#2 Posted : 28 February 2012 00:24:41(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,

Unfortunately, this will not work in v.0.92 Sad . It seems I have to give it up from this example at the moment.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Andrey Ivashov  
#3 Posted : 28 February 2012 01:00:11(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)
Why? It works well for me.

Regards.
Offline omorr  
#4 Posted : 28 February 2012 02:44:54(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)
smath wrote:
Why? It works well for me.


Strange Shok

This is is v0.92 - calculation still not finished.


This is the same file in 0.91



Have no idea what has going wrong. I'll try tomorrow on some other computers - it has already happened that some things did not work on my home computers and worked for you and some other users. Hmm... I am not quite happy about it Sad .

Regards,
Radovan

EDIT: The same on WinXP and Ubuntu

Edited by user 28 February 2012 08:53:16(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline steveswin  
#5 Posted : 28 February 2012 04:27:09(UTC)
steveswin


Rank: Member

Groups: Registered
Joined: 01/09/2011(UTC)
Posts: 11
Man
Location: Cyberjaya, Malaysia

Was thanked: 2 time(s) in 1 post(s)
Hi,

Unfortunaltely same result for me using Radovan's file on v0.92.

Regards

Steve
Offline omorr  
#6 Posted : 28 February 2012 15:29:52(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)
I figured out what has going on...Huh To clue

Look at the picture please:


The constant "e" is not known inside the line() environment (v0.92). I used in the previous file exp() instead and it works now Good . I just looked at the " - not defined" error and asked myself what could not be defined - did not have a clue because it did not tell me what has not been defined. By inspecting step by step, I get the error in one step "e - not defined" and figured out what might be the reason. I am not quite sure why the calculation did not stop here. Maybe it continued in the symbolic fashion - who knows for how long. I hope I am right about it.

Another problem is that there is not known "pi" - п now. This might be the cause of error in calculating degrees directly. We can not use п as a constant inside line() as well. I also suppose that this comes from the changing of imaginary unit "i" in v0.92 and suppressing it as a function argument in the function definition. Btw, "i" as a constant can be used in inside the line() environment, contrary to e and п.

Andrey, could you check this out please.

Regards,
Radovan

Edited by user 28 February 2012 19:27:09(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Andrey Ivashov  
#7 Posted : 29 February 2012 01:47: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)
thanks 2 users thanked Andrey Ivashov for this useful post.
on 29/02/2012(UTC),  on 29/02/2012(UTC)
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.