Open SomebodyLikeEveryBody opened 2 years ago
@SomebodyLikeEveryBody, you're right. There isn't a prescribed way of achieving this. Something that may have to be looked into. In the meantime, deleting it from the functions list in the parser should do.
// Set a new function
nerdamer.setFunction('f', ['x'], 'x^2');
// It works
console.log(nerdamer('f(x^6)').toString())
// Delete the function "f" from the functions list in the parser
delete nerdamer.getCore().PARSER.functions.f
// It's gone
console.log(nerdamer('f(x^6)').toString())
@jiggzson Thank you very much !
Hello,
as it is possible to declare variables with
and forget it with
how can we forget functions we declared using,
is there any nerdamer.clearFunctions() feature ?
Thank you !