Function

nerdamer.symbols

src/index.ts:763
nerdamer.symbols(...args: string[]): Record<string, Expression>

A convenience function for creating simple symbols reducing the reliance on strings

Parameters

NameTypeDescription
argsstring[]A series of string variables

Returns

Record<string, Expression> — An object of created symbols

Examples

const { x, y } = symbols('x', 'y');
cos(x.sq()).times(y);

// Also available as nerdamer.symbols