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 kilele  
#1 Posted : 12 June 2013 00:57:10(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 post(s)
this is not related to your question,
i just wanted to recall the overlapping regions problem already reported in the forum, see it when opening your sample:
http://screencast-o-matic.com/watch/cI1XrLVwO8

Edited by user 12 June 2013 16:33:52(UTC)  | Reason: Not specified

thanks 1 user thanked kilele for this useful post.
on 12/06/2013(UTC)

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

Offline omorr  
#2 Posted : 12 June 2013 01:26:42(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 Ioan,

Try to define the first function this way

θ.gISO(t):20+345*eval(log10(8*t+1))

You will note a drastically reducing of computation time. I do not know the answer why eval() on logarithms work much faster. Actually, without eval() you sametimes will not get the answer at all. Again, I do not know why. Then try to put some trace() commands and see the output window. For instance, try to put

trace(Δθ.acier)

below its calculation. In your green region, all the values are numerical up to the end of for loop. In your function regions after few iterations it becomes a long symbolical value and then function are going crazy. Again, I do not know why Sad . If you put some eval() here and there, the calculation will not be performed. Try to experiment yourself. I think here is some SMath bug as well, and I do not know to explain what is actually happening, sorry Sad

See the picture please. The right one (Ok) is giving all the numerical values inside the loop. The left one after some number of iterations (11-th ????) is giving a long symbolical result. The same think will happen if you delete the green region and the function body (blue region) is just the copy of the green one. The loop varaible will reset to 1 after 7,8,9 (this time to 11-th) iterations after the huge result of Δθ.acier appear???


I can not explain this.



Regards,
Radovan

Edited by user 12 June 2013 09:47:11(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 12/06/2013(UTC)
Offline omorr  
#3 Posted : 12 June 2013 09:40:09(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 was tired last night tracing variables and giant expression, and this morning figured out to put eval() - and the problem was solved (let's say that). See attached.
I have no idea what has going on. Unfortunately, this is once more the presentation of quite unreliable calculation of SMath engine. If this had happened in my class, I would not have any reasonable explanation of what happened. To be honest, I become tired of "chasing ghosts" in this way Sad

By all means, this peculiar behavior of SMath must have been fixed.

I've just played with Screencast-O-Matic like kilele Good

Here it is on my 64bit computer eval() or not to eval()


Regards,
Radovan

Edited by user 12 June 2013 10:57:13(UTC)  | Reason: Not specified

File Attachment(s):
feu EC3b-solved.sm (37kb) downloaded 21 time(s).
omorr attached the following image(s):
feuEC3b-solved.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 12/06/2013(UTC)
Offline omorr  
#4 Posted : 12 June 2013 11:14:21(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)
You are welcome Ioan Good

The "catch 22" here is that you must use eval() to solve things like this one. Moreover, I do not know where the "winning place" is and why. It is just "a hunch" or a trial and error procedure - quite frustrating sometimes. However, if you use eval() you will break the things afterwards. Some calculations will simply refuse to work with it (like root finding, nonlinear solvers, etc.)

Regards,
Radovan

Edited by user 12 June 2013 11:16:28(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 12/06/2013(UTC)
Offline kilele  
#5 Posted : 12 June 2013 13:59:10(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 post(s)
@ioan92

If it's any help, I've just put my laptop specifications into the signature. Just guessing I think it's something related to drivers:
I have this problem all the time when opening samples from other users, however in this very same computer I tried a few Linux distros with different results, for example on SolusOS, SMath worksheets are apparently displayed just like they were created; however on other distros the problem remains or even it is worse.
I reckon that Andrey is aware of this problem and he does not know how to adress it yet. I know that odd sh** happens all the time in computers but maybe he can design an extra layer to avoid these visualization problems, something to reorder/fit/adjust regions according to user alignments/resolution/monitor/font sizes.. maybe something that automatically checks relative relations between blocks.. if that's not possible there could be a preview visualization of the worksheet in extreme conditions of resolutions,etc..or even a preset of templates to reorder all regions fittig such conditions.
thanks 1 user thanked kilele for this useful post.
on 12/06/2013(UTC)
Users browsing this topic
Guest
Similar Topics
Rounding Values in Vectors - User Function (Questions)
by wb.c 21/04/2022 20:07:51(UTC)
User functions (Questions)
by AndreasH 25/04/2019 10:35:25(UTC)
Limited use of user function (Bugs & Problems)
by Jean Giraud 14/09/2015 03:12:45(UTC)
Explicit user function for export to user (Questions)
by Jean Giraud 06/09/2015 17:34:17(UTC)
units and user functions issue (Bugs & Problems)
by Davide Carpi 09/07/2012 12:04:08(UTC)
IsString() and user functions (Bugs & Problems)
by Davide Carpi 08/07/2012 03:49:08(UTC)
String function in user function (Bugs & Problems)
by TheWizEd 08/12/2011 02:41:32(UTC)
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.