Derivative Output

Derivative Output - Solve derivative w/ a subset of numbers - 消息

#1 已发布: 2021/5/21 23:54:27
Larry Burns

Larry Burns

0个赞,共3个帖子。

组: User

I'm struggling to find the best way to generate the output that I need to formulate my next graph. I need to take the derivative of the displacement equation and plot the results in a new graph. I can generate a symbolic output, but not a numeric output... any tips are much appreciated.

未找到文件。未找到文件。
#2 已发布: 2021/5/22 01:27:25
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi. You can use several approaches for do that. This are my usual conventions:

1. Never assign variables x,y,z,t.
2. Lower case are for instant values, like x(t), v(t).
3. Upper case are for constant values or ranged values (like Y.1 and V.1 in the attached).
4. Don't pay too much attention to rules 2 or 3: use them only if simplify the things.

Also, isn't usual to vectorize inside the function definition, but on it use, again, like in the attached.

Hope that's helps.

Plot_displacement.sm (14.26 KiB)已下载 1223 次。

Best regards.
Alvaro.
#3 已发布: 2021/5/22 12:23:02
Larry Burns

Larry Burns

0个赞,共3个帖子。

组: User

Thank you Razonar, this makes perfect sense. I'm almost embarrassed I didn't see this.
My struggle now is I can't thank your post because I get an error.
#4 已发布: 2021/5/22 13:16:45
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

I'm struggling to find the best way to generate the output that I need to formulate my next graph


I would approach differently:
1. Zap units
2. make the functions scalar.
3. Discretize/mesh at will over 'T'
However, your first scalar [fnct, deriv] already exist and plot.
Append units to both discrete export.
Cheers ... Jean
#5 已发布: 2021/5/22 15:12:33
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

...

Plot_displacement OTHERWISE.sm (19.98 KiB)已下载 1215 次。
  • 有新帖
  • 无新帖