Derivative Output

Derivative Output - Solve derivative w/ a subset of numbers - Messages

#1 Posted: 5/21/2021 11:54:27 PM
Larry Burns

Larry Burns

0 likes in 3 posts.

Group: 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.

File not found.File not found.
#2 Posted: 5/22/2021 1:27:25 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: 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 KiB) downloaded 37 time(s).

Best regards.
Alvaro.
#3 Posted: 5/22/2021 12:23:02 PM
Larry Burns

Larry Burns

0 likes in 3 posts.

Group: 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 Posted: 5/22/2021 1:16:45 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 5/22/2021 3:12:33 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

...

Plot_displacement OTHERWISE.sm (19 KiB) downloaded 28 time(s).
  • New Posts New Posts
  • No New Posts No New Posts