UNPKG

ziko

Version:

A versatile JavaScript library offering a rich set of Hyperscript Based UI components, advanced mathematical utilities, interactivity ,animations, client side routing and more ...

8 lines (7 loc) 208 B
export const adapted_cos = x =>{ if(x.isComplex?.()) return new x.constructor( Math.cos(x.a)*Math.cosh(x.b), -(Math.sin(x.a)*Math.sinh(x.b)) ); return Math.cos(x) }