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 Ale_Biaso  
#1 Posted : 09 January 2024 14:45:31(UTC)
Ale_Biaso

Rank: Newbie

Groups: Registered
Joined: 05/05/2023(UTC)
Posts: 7
Italy
Location: Milan

Was thanked: 1 time(s) in 1 post(s)
Hi to everybody.
I've got a problem with an interactive assessment of a parameter.
I'm not able to set in the correct manner a "for Cicle".
The general problem is this one
Procedura.PNG
I need to set an initial lenght L0=6b, than
-if the ratio between y/b<0.1 the cicle end and i obtain the value that i need (y and L);
- if the ratio between y/b>0.1 and <0.6 i need to continue the cicle until convergence
Grafico.PNGParametri.PNGlimiti.PNG

I'm not able to set the correct fuunction
1.PNG2.PNG

Someone can help setting for me the formulation?

I attach the file below, need to be open with the related excell

413-Camino Alabama-Modale_R1.xlsx (301kb) downloaded 10 time(s). 413-Camino Alabama-Vento_R2.sm (5,667kb) downloaded 10 time(s).

Thancks in advance for any answere!
thanks 1 user thanked Ale_Biaso for this useful post.
on 10/01/2024(UTC)

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

Offline ioan92  
#2 Posted : 10 January 2024 23:14:49(UTC)
ioan92


Rank: Advanced Member

Groups: Registered
Joined: 23/12/2012(UTC)
Posts: 42
France, Metropolitan

Was thanked: 153 time(s) in 119 post(s)
Hi Ale_Biaso,
Happy New Year to You and to all SMath users and developers!


1. Congratulations for your interesting and useful work.
2. Thanks for the extensive publication of this work.
3. It is not a simple task to check it all. That’s why I kept my first attention to identify the reasons of “red-marked” errors on your sm file.[/list]
4. Here are some identified reasons of such errors.
Simple pragmatic suggestion: when I have such errors, firstly I display the values of each term to see if they are already defined:

2024-01-10 -Biaso.png

d is not an index; L is not defined, etc !
5. I keep ready to look for a further evolution of your work.
Best Regards,
Ioan

PS: If I may adding some suggestions it will be:
* For the working phase, I use "no limits pages" screen
* Separate "the cosmetics aspects" from the basic robust algorithm. Keep this for a distinct operation...

Buona Fortuna,

Ioan

Edited by user 11 January 2024 05:38:41(UTC)  | Reason: Not specified

Offline Jean Giraud  
#3 Posted : 11 January 2024 04:56:15(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)
Originally Posted by: Ale_Biaso Go to Quoted Post
Hi to everybody.
I've got a problem with an interactive assessment of a parameter.
I'm not able to set in the correct manner a "for Circle"

Recast as suggested by Ioan ... attach.
Generally, Bolean must be specified completely.
Sometimes, immaterial.
Jean

Offline Ale_Biaso  
#4 Posted : 11 January 2024 12:41:20(UTC)
Ale_Biaso

Rank: Newbie

Groups: Registered
Joined: 05/05/2023(UTC)
Posts: 7
Italy
Location: Milan

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: Ale_Biaso Go to Quoted Post
Hi to everybody.
I've got a problem with an interactive assessment of a parameter.
I'm not able to set in the correct manner a "for Cicle".
The general problem is this one
Procedura.PNG
I need to set an initial lenght L0=6b, than
-if the ratio between y/b<0.1 the cicle end and i obtain the value that i need (y and L);
- if the ratio between y/b>0.1 and <0.6 i need to continue the cicle until convergence
Grafico.PNGParametri.PNGlimiti.PNG

I'm not able to set the correct fuunction
1.PNG2.PNG

Someone can help setting for me the formulation?

I attach the file below, need to be open with the related excell

413-Camino Alabama-Modale_R1.xlsx (301kb) downloaded 10 time(s). 413-Camino Alabama-Vento_R2.sm (5,667kb) downloaded 10 time(s).

Thancks in advance for any answere!


I reply here to your advices.

I tried to semplify the spreadsheet in order to focus aptention on the iteractive process that i'd like to assess.
I explicate even the main process that i tried to set into formulation but that doesn't works because i don't understand the correct syntax of a "for cicle"

All my consideration are into the smath file and summaryzed below.

If someone have time to take a look and fix the mistakes of the cicle only i'll be very gratefull.
Considerazioni.PNG
Ciclo.PNG

I attached the simplify file below (always need to be opend in the same folder of related excel)
Ciclo for semplificato_R1.sm (5,612kb) downloaded 7 time(s).
413-Camino Alabama-Modale_R1.xlsx (301kb) downloaded 5 time(s).

Thancks for your time
Offline PompelmoTell  
#5 Posted : 12 January 2024 00:16:41(UTC)
PompelmoTell


Rank: Advanced Member

Groups: Registered
Joined: 23/12/2011(UTC)
Posts: 319
Man
Italy
Location: italy

Was thanked: 109 time(s) in 93 post(s)
In fact I see at least two incorrect or suspicious situations:
1) what appears to be an assignment is performed with = instead of :=
2) j of the for loop is a counter but here it is referred to as a series of values ​​with units of measurement. I'll show you a simple working example




sergio
Offline Davide Carpi  
#6 Posted : 12 January 2024 01:22:50(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1340 time(s) in 879 post(s)
Hi Ale,

That's one way to do it (a backbone)

2024-01-11 12_16_00-Cicle for interaction - Mozilla Firefox.png2024-01-11 12_22_05-SMath Solver - [loop.sm].png


P.S. I'd suggest to use the multiple if/else instead of the nested if/else to improve the readability (just add more argument separators in the standard if/else)
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Ale_Biaso  
#7 Posted : 12 January 2024 22:34:37(UTC)
Ale_Biaso

Rank: Newbie

Groups: Registered
Joined: 05/05/2023(UTC)
Posts: 7
Italy
Location: Milan

Was thanked: 1 time(s) in 1 post(s)
Thacks a lot for your advices!
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.