1 Pages (5 items)
Derivative Output - Solve derivative w/ a subset of numbers - Messages
#1 Posted: 5/21/2021 11:54:27 PM
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.
File not found.File not found.
#2 Posted: 5/22/2021 1:27:25 AM
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 39 time(s).
Best regards.
Alvaro.
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 39 time(s).
Best regards.
Alvaro.
#3 Posted: 5/22/2021 12:23:02 PM
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.
My struggle now is I can't thank your post because I get an error.
#4 Posted: 5/22/2021 1:16:45 PM
WroteI'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
1 Pages (5 items)
-
New Posts
-
No New Posts