Descripción
Gradiente de un campo escalar en un punto
Cadena de entrada
gradiente
Cadena de salida
∇
Uso
gradiente(<función{varnames}>,<varnames>,<punto>[,<h>])
Parámetros | |||
---|---|---|---|
# | Parámetro | Descripción | Valor por defecto |
1 | función{varnames} | Función del campo escalar | |
2 | varnames | Variable de la que depende la función o variables en la forma [x1,x2,…] | |
3 | punto | Punto de evaluación en forma de vector | |
4 | h | Precisión. Valores entre 0.001 y 0.01 suelen dar buen resultado. Demasiado grandes o pequeños producirán errores importantes |
0.01 |
Ejemplos
gradiente(3sqr(x)+2cb(y),[x,y],[4,3])
VectorEvaluado: [23.999999999999726,53.99999999999814]
gradiente(3sqr(x)+2cb(y),[x,y],[4,3],0.5)
VectorEvaluado: [24,54]
sucesion(sucesion(gradiente(inv(mod(x,y))cos(mod(x,y)),[x,y],[a,b]),a,0,1,0.2),b,0,1,0.2)$6
VectorEvaluado: | [0,0] [-25.494378,0] [-6.730167,0] [-3.233668,0] [-1.985299,0] [-1.381773,0] | | [0,-25.494378] [-9.185377,-9.185377] [-4.897236,-2.448617] [-2.799659,-0.933219] [-1.832351,-0.458087] [-1.312857,-0.262571] | | [0,-6.730167] [-2.448617,-4.897236] [-2.535477,-2.535477] [-1.96358,-1.309053] [-1.479701,-0.73985] [-1.138448,-0.455379] | | [0,-3.233668] [-0.933219,-2.799659] [-1.309053,-1.96358] [-1.274506,-1.274506] [-1.105418,-0.829063] [-0.924128,-0.554477] | | [0,-1.985299] [-0.458087,-1.832351] [-0.73985,-1.479701] [-0.829063,-1.105418] [-0.800635,-0.800635] [-0.720496,-0.576397] | | [0,-1.381773] [-0.262571,-1.312857] [-0.455379,-1.138448] [-0.554477,-0.924128] [-0.576397,-0.720496] [-0.549017,-0.549017] |
Véase también…