SMath Studio Forum
»
SMath Studio
»
Questions
»
Design Response Spectra - Graphing
Rank: Newbie
Groups: Registered
Joined: 09/05/2023(UTC) Posts: 8 Location: Manila
|
Good day, So I was shifting from Mathcad to SMath and I can't seem to do this properly. How do I get around graphing this response spectra.I'm quite new to SMath so please be understanding if I don't know of some functions within the program. Design Response Spectra.sm (28kb) downloaded 9 time(s).This is hot it works finely in Mathcad, what would be your suggestions? Thank you for any help,
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,648 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
Here you have your file fixed. Design Response Spectra_00.sm (29kb) downloaded 10 time(s).The issues: The function was made using "while", that is a loop iterator. You have to use if(), or cases() if you prefer (the latter is part of a 3rd party plugin). The evaluation for multiple values has to be done using vectorize() or alternatively by a loop The built-in plot variable is always x for static plots, t to add animations. |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,128 Was thanked: 509 time(s) in 339 post(s)
|
An alternative way to write boolean of your function is using ltle() function. It is one of functions of Custom Functions Plugin. Regards
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: GFDIntano Thank you for any help, Thanks for your project. Saved in my personal project files. I best remember visiting Manilla [April 1987] Take care in Philippines ... Jean Project Seismic Manilla.sm (571kb) downloaded 10 time(s).
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
Design Response Spectra - Graphing
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.