You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The coefficients should be ordered in **ascending** degree, thus matching summation notation.
84
88
89
+
By default, the function assumes double-precision floating-point arithmetic. To emulate single-precision floating-point arithmetic, set the `dtype` option to `'float32'`.
90
+
91
+
```javascript
92
+
var str =compile( [ 3.0, 2.0, 1.0 ], {
93
+
'dtype':'float32'
94
+
});
95
+
// returns <string>
96
+
```
97
+
98
+
In the previous example, the output string would correspond to the following module:
99
+
100
+
<!-- eslint-disable no-unused-expressions -->
101
+
102
+
```javascript
103
+
'use strict';
104
+
105
+
// MODULES //
106
+
107
+
var float64ToFloat32 =require( '@stdlib/number/float64/base/to-float32' );
108
+
109
+
110
+
// MAIN //
111
+
112
+
/**
113
+
* Evaluates a polynomial.
114
+
*
115
+
* ## Notes
116
+
*
117
+
* - The implementation uses [Horner's rule][horners-method] for efficient computation.
0 commit comments