1 страниц (5 вхождений)
Derivative Output - Solve derivative w/ a subset of numbers - Сообщения
#1 Опубликовано: 21.05.2021 23:54:27
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 Опубликовано: 22.05.2021 01:27:25
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 КиБ) скачан 37 раз(а).
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 КиБ) скачан 37 раз(а).
Best regards.
Alvaro.
#3 Опубликовано: 22.05.2021 12:23:02
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 Опубликовано: 22.05.2021 13:16:45
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 Опубликовано: 22.05.2021 15:12:33
1 страниц (5 вхождений)
-
Новые сообщения
-
Нет новых сообщений