3Output

A variety of methods are provided to display formatted character strings representing the numeric values of the Clifford numbers contained in the data type ‘number’. Most of the methods write the values to the standard output stream ‘stdout’, allowing some control over what information is printed and how the numerical values are formatted. When these methods produce unsatisfactory results, the best approach is to recover the values of coefficients and units in numeric form and format those according to the need of the particular application.

All of the examples in this chapter use a single three‐dimensional number, generated by the code shown in Example 3.1. That way the outputs of all of the examples can be sensibly compared to one another.

Get Numerical Calculations in Clifford Algebra now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.