print

print(template, values)

print(template, values, precision)

Try it yourself:

See also:

print(): render a value as text

print(x) produces a readable textual representation of a value or expression. It is useful for logs, labels, diagnostics, and displaying symbolic results.

Readable output

Printing is about representation, not changing the underlying value. An expression may be printed in a conventional mathematical form while remaining available for further evaluation.

Related formatting tools

Use format() to control numeric notation, numeric() for approximation, and parse() to read text back as an expression. simplify() can make printed formulas shorter.

Caveat

Formatted text is for people, not necessarily a lossless data interchange format. Preserve original values when later computation needs full precision.

Try Print in Calcul.io

Start with one of the editable examples above, then replace its arguments with your own values. Keeping the function on a separate calculator line makes the input and result easy to compare. For a longer workflow, assign the result to a variable or reference that line in the next expression.

Check the shown signature before adding optional arguments, and use the related-function links to compare operations with similar purposes.

All functions