fortran - Maple Help

MTM

 fortran
 generate Fortran code for an expression

 Calling Sequence fortran(A,x)

Parameters

 A - expression, array, matrix, or vector of expressions x - (optional) string

Description

 • 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.

Examples

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $\mathrm{fortran}\left({x}^{4}-5{x}^{2}+2,'w'\right)$
 ${"w = x ** 4 - 5 * x ** 2 + 2"}$ (1)