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 Vijay  
#1 Posted : 07 May 2018 19:44:59(UTC)
Vijay


Rank: Member

Groups: Registered
Joined: 15/03/2018(UTC)
Posts: 23
Canada
Location: Hamilton

Was thanked: 1 time(s) in 1 post(s)
Hi,

Can someone share an example of plotting a basic sine wave as a function of time.

I am running into some difficulties with the graphing part.

Regards,
Vijay Khatri

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

Offline alyles  
#2 Posted : 07 May 2018 20:36:22(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 275
United States

Was thanked: 91 time(s) in 57 post(s)
Have you had a look at the wiki here: https://smath.info/wiki/Graphs.ashx


Also take a look at the Interactive SMath Handbook put together by Martin. You can find it by going to tools ->Plugins then clicking on Interactive Books in the left panel. I cannot remember if it's installed by default or not. If it's not there you can download it by further clicking on the "Local Storage" button and selecting "Online Gallery" and choosing to install it from there.

Untitled.png

Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline Vijay  
#3 Posted : 08 May 2018 04:47:15(UTC)
Vijay


Rank: Member

Groups: Registered
Joined: 15/03/2018(UTC)
Posts: 23
Canada
Location: Hamilton

Was thanked: 1 time(s) in 1 post(s)
Thank You
Offline Jean Giraud  
#4 Posted : 08 May 2018 05:28:16(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
... a bit more.

Utilities Pts Split-in-range [a,b,N].sm (15kb) downloaded 35 time(s).
Offline Vijay  
#5 Posted : 09 May 2018 17:21:08(UTC)
Vijay


Rank: Member

Groups: Registered
Joined: 15/03/2018(UTC)
Posts: 23
Canada
Location: Hamilton

Was thanked: 1 time(s) in 1 post(s)
Hi All,

I have a question related to the plotting, it miight be very trivial but I can't seem to figure it out. In the attached file, Basic_sine.sm (8kb) downloaded 20 time(s).I have used similar approach in MathCad and it works, however in SMath it does not.
Regards,
Vijay
Offline alyles  
#6 Posted : 09 May 2018 17:44:36(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 275
United States

Was thanked: 91 time(s) in 57 post(s)
Looks like you need to multiply omega by the unit 's (This makes the input to the sine function unitless). The standard sin() function doesn't seem to like units. I'm not sure if this is a bug or not. Note that 'deg is actually unit-less (it's simply a scale factor)

Basic_sine[1].sm (9kb) downloaded 68 time(s).

Edit: I'm fairly certain it's not a bug. Inputs to trig functions with any format other than radians or degrees is meaningless.

Edited by user 09 May 2018 17:56:17(UTC)  | Reason: Not specified

Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline Vijay  
#7 Posted : 09 May 2018 18:46:11(UTC)
Vijay


Rank: Member

Groups: Registered
Joined: 15/03/2018(UTC)
Posts: 23
Canada
Location: Hamilton

Was thanked: 1 time(s) in 1 post(s)
Thank you
Users browsing this topic
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.