MTM
fortran
generate Fortran code for an expression
Calling Sequence
Parameters
Description
Examples
fortran(A,x)
A
-
expression, array, matrix, or vector of expressions
x
(optional) string
The fortran(A,x) function creates a Fortran statement which represents the assignment of the expression A to the variable x. This Fortran statement is returned as a string.
When called with the form fortran(A), the expression A is assigned to a default variable name in the returned statement.
with⁡MTM:
fortran⁡x4−5⁢x2+2,w
w = x ** 4 - 5 * x ** 2 + 2
See Also
CodeGeneration[Fortran]
MTM[ccode]
Download Help Document