fortran - Maple Help

Online Help

All Products    Maple    MapleSim


MTM

  

fortran

  

generate Fortran code for an expression

 

Calling Sequence

Parameters

Description

Examples

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

withMTM:

fortranx45x2+2,w

w = x ** 4 - 5 * x ** 2 + 2

(1)

See Also

CodeGeneration[Fortran]

MTM[ccode]