(rontolisp) docs
← Functions

linalg:sin

(linalg:sin array)

Returns a fresh array of the same shape with the sine applied to every element (numpy's np.sin) -- equivalent to (linalg:emap #'sin array), but as a named function it is accelerated under --simd. Like sin itself, the WASM backends compute it with a software approximation whose low-order digits can differ from the interpreter's and the JVM's.