Derivative Output

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

#1 Publicado: 21/5/2021 23:54:27
Larry Burns

Larry Burns

0 me gusta en 3 mensajes.

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

Archivo no encontrado.Archivo no encontrado.
#2 Publicado: 22/5/2021 1:27:25
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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) descargado 1209 vez(es).

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

Larry Burns

0 me gusta en 3 mensajes.

Grupo: 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 Publicado: 22/5/2021 13:16:45
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 22/5/2021 15:12:33
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

...

Plot_displacement OTHERWISE.sm (19,98 KiB) descargado 1197 vez(es).
  • Nuevos mensajes
  • Sin mensajes nuevos