Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

13 Pages«<111213
Options
Go to last post Go to first unread
Offline Razonar  
#241 Posted : 12 February 2019 05:43:29(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,036
Uruguay

Was thanked: 581 time(s) in 374 post(s)
Originally Posted by: omorr Go to Quoted Post

Thank you Alvaro for your interest in these problems. Here is the file once more.


Hi Radovan. Thanks you for answer. I'm not clear, I refer to the initials conditions in the mathcad worksheet, phi, x and y. And k too. Are the same than in the smath file?

Best regards.
Alvaro.
Offline Razonar  
#242 Posted : 12 February 2019 07:57:54(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,036
Uruguay

Was thanked: 581 time(s) in 374 post(s)
Hi. Don't worry for the mathcad values, SMath is powerful. Here a way to solve Radovan's flash problem.

Primer38-doomed 2.sm (72kb) downloaded 56 time(s).

Best regards.
Alvaro.
thanks 2 users thanked Razonar for this useful post.
on 12/02/2019(UTC),  on 12/02/2019(UTC)
Offline omorr  
#243 Posted : 12 February 2019 10:56:01(UTC)
omorr


Rank: Administration

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

Was thanked: 318 time(s) in 268 post(s)
Originally Posted by: Razonar Go to Quoted Post
Hi. Don't worry for the mathcad values, SMath is powerful. Here a way to solve Radovan's flash problem.

Primer38-doomed 2.sm (72kb) downloaded 56 time(s).

Best regards.
Alvaro.


Thank you Alvaro very much Good . That's exactly I was talking about Good

It could be solved by using your great function SNRxy() function. I did it long time ago by some similar home made functions as well. The main point is that we should also could have solve the same problem with some of the functions from, say, this NonlinearSolves plugin. You might use, say Broyden() or some other function but it seems it does not work anymore, or at least I forgot or do not know how to use it. As I mentioned before, NonlinearSolvers plugin (IMHO) is the only one adressing these problems but it was not updated for a long time.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline omorr  
#244 Posted : 12 February 2019 14:21:45(UTC)
omorr


Rank: Administration

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

Was thanked: 318 time(s) in 268 post(s)
Just for the record. Slightly changed, maybe less correct posed, but solved correctly Good

To excuse myself and thank Alvaro and Jean once more. I unintentionally deleted some regions regarding initial conditions and introduced a confusion a bit, and figured out by rechecking the things.

Primer38-undoomed.sm (72kb) downloaded 39 time(s).

Regards,
Radovan

Edited by user 12 February 2019 18:31:41(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Jean Giraud  
#245 Posted : 12 February 2019 22:52:51(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,263
Canada

Was thanked: 915 time(s) in 743 post(s)
Originally Posted by: omorr Go to Quoted Post
Just for the record.

... a bit more Pro.

NativeFindRoot.PNG

Offline Jean Giraud  
#246 Posted : 13 February 2019 18:37:26(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,263
Canada

Was thanked: 915 time(s) in 743 post(s)
Originally Posted by: omorr Go to Quoted Post
but solved correctly

Interesting to know SNRxy(a,N,εx,εy) works fine in your latest SS version.
Two pieces of code SS 6179 does not digest [@ big arrow].
FindRoot works fine manual patience, but could not make work in forloop.
As done, it saturates @ 12 decimals with the two degree of freedom.
I have done my best for myself if any useful for more visitors.
I could see some Matlab code wrt matrices A,B but does explain where
they come from. Still missing some abstract for readers.
Thanks Radovan, Alvaro ... most appreciated.
In short => SS 6179 does not cut the mustard ! a British expression.

Jean

Project Solve Flashing Copy.sm (205kb) downloaded 32 time(s).

Offline omorr  
#247 Posted : 13 February 2019 19:53:18(UTC)
omorr


Rank: Administration

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

Was thanked: 318 time(s) in 268 post(s)
Than you Jean for being supportive,

It crossed my mind that my first post here was almost 10 years ago. It seems that I am repeating myself periodically.

Best Regards,
Radovan

Edited by user 13 February 2019 19:56:45(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 13/02/2019(UTC)
Offline Razonar  
#248 Posted : 14 February 2019 00:48:44(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,036
Uruguay

Was thanked: 581 time(s) in 374 post(s)
Hi. The troubles that I find solving this is that can't use the normal call for functions, as it is showed at the end, where fails to call the same Newton-Raphson code, but with F(1) and C(1).
This must to be some kind of bug calling functions when the definition of the functions it's complicate or implies the vectorization for the args.

Primer38-undoomed - redoomed.sm (76kb) downloaded 34 time(s).

Best regards.
Alvaro.
thanks 1 user thanked Razonar for this useful post.
on 14/02/2019(UTC)
Offline Jean Giraud  
#249 Posted : 14 February 2019 01:25:01(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,263
Canada

Was thanked: 915 time(s) in 743 post(s)
Originally Posted by: Razonar Go to Quoted Post
The troubles that I find solving this is that can't use the normal call for functions,

The "redooomed" downloaded but can't open yet. It might suffer same
auto-consumption than FindRoot, i.e: it does not clear itself within a for loop.
It must be called from an external forloop. Will post soon a semi-elegant way
of descending the FindRoot that needs several iterations as it is ± 3 decimals
from the Smath native module. I get 0.0000000000001 as final sanity solutions.
Takes ~ 5 minutes of manual iterations ... Jean is happy !
Cheers Alvaro.

Offline Jean Giraud  
#250 Posted : 14 February 2019 06:44:31(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,263
Canada

Was thanked: 915 time(s) in 743 post(s)
Originally Posted by: omorr Go to Quoted Post
It seems that I am repeating myself periodically.

Like when you start speaking to yourself, indicates the Man is in good growing conditions.
That version is refreshed in 8 manual iterations, easy to use.
Start by the very initials [xo, yo]

Cheers ... Jean

FindRootFlashing.PNG

Project Solve Flashing Copy.sm (210kb) downloaded 23 time(s).
thanks 1 user thanked Jean Giraud for this useful post.
on 14/02/2019(UTC)
Offline omorr  
#251 Posted : 14 February 2019 10:49:46(UTC)
omorr


Rank: Administration

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

Was thanked: 318 time(s) in 268 post(s)
Originally Posted by: Razonar Go to Quoted Post
Hi. The troubles that I find solving this is that can't use the normal call for functions, as it is showed at the end, where fails to call the same Newton-Raphson code, but with F(1) and C(1).
This must to be some kind of bug calling functions when the definition of the functions it's complicate or implies the vectorization for the args.

Primer38-undoomed - redoomed.sm (76kb) downloaded 34 time(s).

Best regards.
Alvaro.



Thank you Alvaro for this. This was a logical thing to do in order to improve your function. Moreover, the "spooky" thing "xx-not defined" appears here and there and I often do not have a clue why. It often appears when you want to use eval(). Someone might have an explanation for this effect you represented in this example, but it still makes me confused and it seems it will remain that way. I suppose you understand now why I called this one as "doomed".

xnotdefined.png

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Jean Giraud  
#252 Posted : 14 February 2019 16:35:36(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,263
Canada

Was thanked: 915 time(s) in 743 post(s)
Originally Posted by: omorr Go to Quoted Post
the "spooky" thing "xx-not defined"

"can't calculate spooky" because like Mathcad, can't trace back
in the program [generally]. The other spooky about FindRoot
"can't find variables ... try a more specific algorithm "
Often, we get red spooky like you show but calculations are done.
Just adapt a bit of coding to calm down SS from complaining.
Simply spooky syntax as you show.

Jean

Offline mkraska  
#253 Posted : 29 January 2020 17:59:54(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,760
Germany

Was thanked: 968 time(s) in 616 post(s)
In build 7251, there is a problem with Taylor(), see screenshot. Bugreport filed as SS-4631

Taylor.sm (22kb) downloaded 30 time(s).
taylor.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
Offline GlennTg  
#254 Posted : 20 September 2022 11:10:00(UTC)
GlennTg

Rank: Newbie

Groups: Registered
Joined: 17/06/2020(UTC)
Posts: 5
Belgium
Location: Sint-Niklaas

I encountered the bug as well in the latest version (build 8253) with plugin version 1.1.7097.23301, and as far as I can see, the latest update is from 2019: https://en.smath.com/vie...055-9e577672f0b8/summary


Is this plugin still being maintained, or should I look for another solution?

Thanks in advance!
Offline Davide Carpi  
#255 Posted : 20 September 2022 15:07:31(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,524
Man
Italy
Location: Italy

Was thanked: 1267 time(s) in 833 post(s)
Hello,

you can circumvent the issue using a single-argument line()

2022-09-20 13_59_04-SMath Solver - [Taylor.sm_].png


I'll check if there is a solid way to fix it, preprocessing in symbolic functions sometimes is hard to handle in many ways....
If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects
Offline GlennTg  
#256 Posted : 20 September 2022 15:56:29(UTC)
GlennTg

Rank: Newbie

Groups: Registered
Joined: 17/06/2020(UTC)
Posts: 5
Belgium
Location: Sint-Niklaas

Hi,

Thanks for your reply!
However, I cannot reproduce the workaround.
Taylor_proof.png

I also thought the 2nd argument was supposed to be 'x', the variable of the function, but you use '2'? Do I have a wrong understanding?

Thanks again.
Offline Davide Carpi  
#257 Posted : 20 September 2022 16:05:29(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,524
Man
Italy
Location: Italy

Was thanked: 1267 time(s) in 833 post(s)
Originally Posted by: GlennTg Go to Quoted Post
However, I cannot reproduce the workaround.

Try changing the optimization on the region that shows the error to "symbolic" or "none"

Originally Posted by: GlennTg Go to Quoted Post
I also thought the 2nd argument was supposed to be 'x', the variable of the function, but you use '2'?

It can be either a number or a variable name (x, x0, z, ...).

If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects
Offline Jean Giraud  
#258 Posted : 20 September 2022 16:18:18(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,263
Canada

Was thanked: 915 time(s) in 743 post(s)
As far as Taylor is concerned, there is no bug in Smath.
Taylor is not a function. Simply a Classroom quick plot demo.
What it plots is not otherwise possible to evaluate.
However, you can play/productive with the spooky Taylor.
Cheers ... Jean ... hope it clarifies.

TaylorSpooky.PNG
Offline GlennTg  
#259 Posted : 20 September 2022 17:00:16(UTC)
GlennTg

Rank: Newbie

Groups: Registered
Joined: 17/06/2020(UTC)
Posts: 5
Belgium
Location: Sint-Niklaas

Thank you all for the replies!
Offline Jean Giraud  
#260 Posted : 21 September 2022 17:58:53(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,263
Canada

Was thanked: 915 time(s) in 743 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
However, you can play/productive with the spooky Taylor.

The missing document.

Maths Taylor Spooky.sm (21kb) downloaded 6 time(s).
Users browsing this topic
13 Pages«<111213
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.