Glen Whitney

Results 43 issues of Glen Whitney

> ``` > f(x,y) = (y==0) ? undefined : x%y; evaluate('mod(22,0)', {mod: f})\n evaluate('22 % 0', {mod: f}) > ``` > > yields `[undefined, 22]`. That is an interesting case....

bug

How do I call this from typescript? _Originally posted by @aapocketz in https://github.com/josdejong/mathjs/issues/2521#issuecomment-1186075824_ The commenter is absolutely right; pinv is missing from types/index.d.ts and needs to be added.

bug
help wanted
typescript

As `and`, `or`, and `xor` are associative and commutative, in function form there's no reason they could not take multiple arguments like their arithmetic counterparts `add` and `multiply`.

feature
category:expressions

For example, one signature of math.exp is Complex. But there is a conversion in mathjs from Fraction to Complex. Hence, `math.exp(math.fraction(1,1))` is a legal expression that returns e + 0i....

bug
help wanted
typescript

Although #1913 is closed, the discussion there raised the possibility of extending array simplification to handle something like `x*[3/x, 7]` simplifying to `[3, 7x]`. One ingredient for this was a...

feature

In elevating `resolve` to a full-fledged function, I overlooked that there is an example in which `resolve()` is called directly on a string (without calling `parse` on the string), namely...

question
category:symbolic

- [ ] Declare Range and ResultSet types in `types/index.d.ts` and make the associated "is" functions into guards; also add type tests for them into `types/index.ts` - [ ] Provide...

help wanted

Currently (from the demo): ``` h(x)=x^2+3x+7 h(x) derivative(h,"x") TypeError: Unexpected type of argument in function derivative (expected: string or Node or number or boolean, actual: function, index: 0) ``` It...

feature
question

This PR is not intended for merging as-is, but serves as an alternate demonstration (vis-a-vis issue https://github.com/josdejong/mathjs/issues/2437) that essentially all the ingredients already exist in mathjs for evaluation in which...

This PR is not intended for merging as-is, but serves to demonstrate (vis-a-vis issue #2437) that essentially all the ingredients already exist in mathjs for evaluation in which all undefined...