Stop Execution in SMath
Stop Execution in SMath
(OP)
Is there a command that will halt execution of a 'for loop' if the program reaches that point and maintains the variable values? I'm haveing difficulty with the attached program. Using the same function, I get different values inside the loop and outside the loop. The post does not allow me to upload a *.sm or *.pdf, for some reason. Maybe from an edit?
Rather than think climate change and the corona virus as science, think of it as the wrath of God. Feel any better?
-Dik
Rather than think climate change and the corona virus as science, think of it as the wrath of God. Feel any better?
-Dik
RE: Stop Execution in SMath
Rather than think climate change and the corona virus as science, think of it as the wrath of God. Feel any better?
-Dik
RE: Stop Execution in SMath
Rather than think climate change and the corona virus as science, think of it as the wrath of God. Feel any better?
-Dik
RE: Stop Execution in SMath
One nasty trick would be
if <I want to end it>
i=rows(data)
else
<carry on>
That works on very bad implementations of some languages.
Cheers
Greg Locock
New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?
RE: Stop Execution in SMath
More specific to what you seem to be asking for:
{other stuff that satisfies condition 1}
if(result(i)-result(i-1) < 0.0001, condition2=TRUE)
Which would catch your result once it's leveled off.
Please remember: we're not all rednecks!
www.sparweb.ca
RE: Stop Execution in SMath
Rather than think climate change and the corona virus as science, think of it as the wrath of God. Feel any better?
-Dik
RE: Stop Execution in SMath
TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm
RE: Stop Execution in SMath
Dik
Rather than think climate change and the corona virus as science, think of it as the wrath of God. Feel any better?
-Dik
RE: Stop Execution in SMath
RE: Stop Execution in SMath
Rather than think climate change and the corona virus as science, think of it as the wrath of God. Feel any better?
-Dik
RE: Stop Execution in SMath
RE: Stop Execution in SMath
Rather than think climate change and the corona virus as science, think of it as the wrath of God. Feel any better?
-Dik
RE: Stop Execution in SMath
This post talked about it but I found it too complicated for my level https://en.smath.com/forum/yaf_postst7129p3_Data-t...
This template and AISC database can get anyone a start. I broke the AISC database table into smaller tables for specific shapes and deleted all columns that don't apply for the shape. You need to save the excel file into the same Smath folder. It'll take 2 or 3 seconds to re-calculate whenever you change the shape.
Is there anyway to force Smath to calculate in Imperial units? I hate to retype unit for every calculation.
RE: Stop Execution in SMath
Rather than think climate change and the corona virus as science, think of it as the wrath of God. Feel any better?
-Dik
RE: Stop Execution in SMath
I found this one and it works really well to pull all AISC section properties. https://smath.com/file/kgsas