While trying to simplify radicals earlier today, I chose three variables at random using a selectFromSequence. In some cases, i and e were selected and when using the simplify attribute Doenet assumed i and e represented constants and not variables. I only realized this after quite some time spent troubleshooting. Could these two letters be excluded automatically from type=“letters”? I imagine this could become annoying for new authors. Any suggested workarounds other than excluding them?
That is interesting. Should there be way to know that the e and i coming from the selectFromSequence are letters rather than the constants? I’m not sure how to do that in a way that wouldn’t just introduce more confusion. How would one know that a particular e is a letter versus the constant?
I guess not. I wouldn’t have known there was an issue if I wasn’t trying to do some math with the letters. I’ll place this in the be careful pile.
Yeah, but it is a pretty bad footgun. Having an attribute excludeEI that defaults to true is better than the current situation. But, I wish there was a better solution.
Only other thing that comes to mind is to use capitalized E and I for the mathematical constants, like Mathematica does. But I admit I prefer being able to write e and i. It’s more natural for students.
We could also have an attribute for use at the time of simplification or evaluation, such as evaluateE or evaluateI. But, if the default is to have e and i be the mathematical constants, it wouldn’t help people know what to do the first time they get burned.
Could a non-activity-breaking warning be shown whenever e or i are inside of a math simplify if the letters are coming from a select?