Skip to content

Commit a00eaca

Browse files
Add expand type
1 parent 8015dfa commit a00eaca

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

index.d.ts

+10
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,16 @@ return _.multiply(sum, product)
355355
* // false
356356
*/
357357
gte(value: number | string | Expression): Expression
358+
359+
/**
360+
* Expands a function or expression.
361+
* @example
362+
* nerdamer('x*(x+1)').expand();
363+
* // x+x^2
364+
* nerdamer('(x+y)*(x-5)*x').expand();
365+
* // -5*x*y-5*x^2+x^3+x^2*y
366+
*/
367+
expand(): Expression
358368
}
359369

360370
////////// CALCULUS

0 commit comments

Comments
 (0)