You can write these functions in Matlab using the following code:
main.m298 chars11 linesNote that these functions use the symbolic toolbox in Matlab, which allows for symbolic computation. You can call these functions on any symbolic expressions, such as syms t; rho = t^2; var = t^3; e = function_e(rho, var);.
gistlibby LogSnag