Function
src/index.ts:763nerdamer.symbols
nerdamer.symbols(...args: string[]): Record<string, Expression>A convenience function for creating simple symbols reducing the reliance on strings
Parameters
| Name | Type | Description |
|---|---|---|
args | string[] | 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