convert/string
convert an expression to a string
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
convert(expr, string)
convert(expr, string, opts)
expr
-
expression
opts
(optional) option name or equation of the form option = value where option is one of format, sourceformat, or targetformat.
format : string
The option behaves identically to targetformat, but is only valid when expr is not itself a ByteArray or string.
sourceformat : string
A string corresponding to one of the file formats described in Formats. The input expr will be decoded using the specified format and the data returned as a string. If the format specified is not one for which a string is a valid output type, an error is issued.
targetformat : string
A string corresponding to one of the file formats described in Formats. The input expr will be encoded in the specified format and the encoded data returned as a string.
The convert(expr, string) calling sequence converts the expression expr to a string.
To convert a string to an expression, refer to the parse command.
convert⁡a,string
a
convert⁡sin⁡x2,string
sin(x^2)
convert⁡a+b+c⁢d,string
c*d+a+b
The convert/string command was updated in Maple 2022.
See Also
convert
parse
string
symbol
type/string
Download Help Document