Replies: 5 comments
-
Sorry I don't fully understand your idea, can you elaborate? |
Beta Was this translation helpful? Give feedback.
-
Sure. If I understand
In the first case Perhaps, the current implementation should be left as is, and instead it would be better to provide an alternative function for these use cases. |
Beta Was this translation helpful? Give feedback.
-
Ah, so you would like to be able to treat specific symbols like Anyone interested into trying this out? Help would be welcome. |
Beta Was this translation helpful? Give feedback.
-
Yes, that is another great way of putting it. I suppose (one of) the biggest question(s) would be how to distinguish "constant" vs "variable" symbols in the rules that I just wanted to log this "feature request", since it seems feasible in principle, and it would be rather useful to have in certain practical applications. |
Beta Was this translation helpful? Give feedback.
-
Since this is more of a feature idea than a specifically actionable issue as it stands, moving it to Discussions. |
Beta Was this translation helpful? Give feedback.
-
In SymPy, you can explicitly specify the polynomial generators and domain of coefficients. In particular, you can extend the domain of coefficients with symbols, which makes it possible to have symbolic coefficients, see:
https://docs.sympy.org/latest/modules/polys/basics.html
Is there a way to emulate this in mathjs? This would be the desired behavior (not working/pseudo code):
My suspicion is that this currently is not possible due to limitations in the rewriting rules, but maybe there is some clever trick to make it work.
Beta Was this translation helpful? Give feedback.
All reactions