| ... | @@ -7,15 +7,16 @@ Generic name of a function is `wderiv_operation_Nd_t`, where: | ... | @@ -7,15 +7,16 @@ Generic name of a function is `wderiv_operation_Nd_t`, where: | 
|  | * `dfdy` : $`\frac{\partial f}{\partial y}`$ |  | * `dfdy` : $`\frac{\partial f}{\partial y}`$ | 
|  | * `dfdz` : $`\frac{\partial f}{\partial z}`$ |  | * `dfdz` : $`\frac{\partial f}{\partial z}`$ | 
|  | * `d2fdx2` : $`\frac{\partial^2 f}{\partial x^2}`$ |  | * `d2fdx2` : $`\frac{\partial^2 f}{\partial x^2}`$ | 
|  | * d2fdy2 |  | * `d2fdy2` : $`\frac{\partial^2 f}{\partial y^2}`$ | 
|  | * d2fdz2 |  | * `d2fdz2` : $`\frac{\partial^2 f}{\partial z^2}`$ | 
|  | * dnfdxn |  | * `dnfdxn` : $`\frac{\partial^n f}{\partial x^n}`$ | 
|  | * dnfdyn |  | * `dnfdyn` : $`\frac{\partial^n f}{\partial y^n}`$ | 
|  | * dnfdzn |  | * `dnfdzn` : $`\frac{\partial^n f}{\partial z^n}`$ | 
|  | * gradient |  | * `gradient` :  $`(\frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}, \frac{\partial f}{\partial z})`$ | 
|  | * `gradient2` : $`|\nabla f|^2`$, see [here for computation details](Gradient square) |  | * `gradient2` : $`|\nabla f|^2`$, see [here for computation details](Gradient square) | 
|  | * divergence |  | * `laplace` :  $`\frac{\partial^2 f}{\partial x^2} + \frac{\partial^2 f}{\partial y^2} + \frac{\partial^2 f}{\partial z^2}`$ | 
|  | * ... |  | * `divergence` :  $`\frac{\partial f}{\partial x} + \frac{\partial f}{\partial y} + \frac{\partial f}{\partial z}`$ | 
|  |  |  | * `curl` : $`(\frac{\partial f_y}{\partial z} - \frac{\partial f_z}{\partial y},\frac{\partial f_z}{\partial x} - \frac{\partial f_x}{\partial z},\frac{\partial f_x}{\partial y} - \frac{\partial f_y}{\partial x})`$ | 
|  | * `N`: |  | * `N`: | 
|  | * `1` for 1D problems |  | * `1` for 1D problems | 
|  | * `2` for 2D problems |  | * `2` for 2D problems | 
| ... | @@ -29,7 +30,7 @@ Generic name of a function is `wderiv_operation_Nd_t`, where: | ... | @@ -29,7 +30,7 @@ Generic name of a function is `wderiv_operation_Nd_t`, where: | 
|  | * Function computes first derivative with respect to x (df/dx) |  | * Function computes first derivative with respect to x (df/dx) | 
|  | * of 3D real function f(x,y,z) |  | * of 3D real function f(x,y,z) | 
|  | * @param f pointer to function, array of size [nx*ny*nz] (INPUT) |  | * @param f pointer to function, array of size [nx*ny*nz] (INPUT) | 
|  | * @param df_dx pointer to function, array of size [nx*ny*nz] (OUTPUT) |  | * @param dfdx pointer to function, array of size [nx*ny*nz] (OUTPUT) | 
|  | *                NOTE: dfdx can be the same pointer as f, then result overwrites input |  | *                NOTE: dfdx can be the same pointer as f, then result overwrites input | 
|  | * @return error code |  | * @return error code | 
|  | * */ |  | * */ | 
| ... |  | ... |  |