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 Jean Giraud  
#1 Posted : 14 February 2019 04:49:44(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
The Smath native FindRoot does not re-seed itself, thus does not re-seeds
within a classical forloop. However, it can be called algo style from external
command line ... more: it will solve auto-range on the length of the
input vectors 'xx, yy'
sol(j,xx,yy) ... int his case solving for 'xx, yy' of length 'j'.
As you open this document, the system is in its very initial state.
1. calculate
2. plug back in the initial vector ... calculate
3. keep going until both sanity vectors reach 0.000000000000
4. No more bananas for the monkey FindRoot
The convergence [number of iterations] can't be predicted as it depends
upon the FindRoot robustness wrt the equalities system.

This type of external looping was designed for a Mathcad 11 application
Same but different is solve(,,,) applied to Pipe Data Smath.
different because in this case solve(,,,,) can be declared
above use ... declared as wild algo. FindRoot does not support decalation.

I may not have completely cracked, but it works.
Enjoy, comments welcomed.

Jean

Project Solve Flashing Copy.sm (204kb) downloaded 50 time(s).
thanks 1 user thanked Jean Giraud for this useful post.
on 14/02/2019(UTC)

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

Offline Jean Giraud  
#2 Posted : 14 February 2019 16:19:32(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
... refreshed/cleaned for publishing.
The very last collapsed is stuff that does not work SS 61779.
Given for those SS compatible.
Like explained before: plug the [xo, yo] initials in the running [xx, yy]
In 8 manual cyclic iterations, FindRoot has finished if you want so.
If you just want 3 or 4 decimals iterate less.
That solver may be included in a while loop, not well inspired !

Project Solve Flashing Copy.sm (214kb) downloaded 44 time(s).
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.