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 GFDIntano  
#1 Posted : 09 May 2023 11:31:47(UTC)
GFDIntano

Rank: Newbie

Groups: Registered
Joined: 09/05/2023(UTC)
Posts: 8
Philippines
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).
Design Response Spectra.PNG

This is hot it works finely in Mathcad, what would be your suggestions?

Mathcad Design Response Spectra.PNG

Thank you for any help,

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

Offline Davide Carpi  
#2 Posted : 09 May 2023 13:42:11(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,648
Man
Italy
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).
2023-05-09 12_37_35-SMath Solver - [Design Response Spectra_00.sm].png

The evaluation for multiple values has to be done using vectorize() or alternatively by a loop
2023-05-09 12_37_51-SMath Solver - [Design Response Spectra_00.sm].png

The built-in plot variable is always x for static plots, t to add animations.
2023-05-09 12_37_44-SMath Solver - [Design Response Spectra_00.sm].png
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Jean Giraud  
#3 Posted : 09 May 2023 14:45:17(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: GFDIntano Go to Quoted Post
Thank you for any help,

Doctored in Smath SS 6179.
Cheers ... Jean.

Design Response Spectra Doctored.sm (33kb) downloaded 5 time(s).

Edited by moderator 09 May 2023 16:47:45(UTC)  | Reason: Not specified

Offline Jean Giraud  
#4 Posted : 10 May 2023 14:19:24(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)
... smooth derivative added.

Bolean.PNG

Design Response Spectra Doctored.sm (109kb) downloaded 13 time(s).
Offline overlord  
#5 Posted : 10 May 2023 20:55:05(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

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

2023-05-10_20-53.png
Offline Jean Giraud  
#6 Posted : 11 May 2023 17:41:33(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: GFDIntano Go to Quoted Post
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).
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.