Plotting Sine fuction

Plotting Sine fuction - Сообщения

#1 Опубликовано: 07.05.2018 13:44:59
vijaykhatri

vijaykhatri

1 сообщений из 23 понравились пользователям.

Группа: User

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
#2 Опубликовано: 07.05.2018 14:36:22
Arie

Arie

93 сообщений из 285 понравились пользователям.

Группа: User

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
#3 Опубликовано: 07.05.2018 22:47:15
vijaykhatri

vijaykhatri

1 сообщений из 23 понравились пользователям.

Группа: User

Thank You
#4 Опубликовано: 07.05.2018 23:28:16
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

... a bit more.

Utilities Pts Split-in-range [a,b,N].sm (14 КиБ) скачан 60 раз(а).
#5 Опубликовано: 09.05.2018 11:21:08
vijaykhatri

vijaykhatri

1 сообщений из 23 понравились пользователям.

Группа: User

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 (7 КиБ) скачан 40 раз(а).I have used similar approach in MathCad and it works, however in SMath it does not.
Regards,
Vijay
#6 Опубликовано: 09.05.2018 11:44:36
Arie

Arie

93 сообщений из 285 понравились пользователям.

Группа: User

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 (8 КиБ) скачан 99 раз(а).

Edit: I'm fairly certain it's not a bug. Inputs to trig functions with any format other than radians or degrees is meaningless.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#7 Опубликовано: 09.05.2018 12:46:11
vijaykhatri

vijaykhatri

1 сообщений из 23 понравились пользователям.

Группа: User

Thank you
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений