Conversation
🚀 Preview available 🚀https://8d05ab89.tbil.pages.dev
|
| def typeset_trigpowers(f): | ||
| return f.substitute_function(sin(x)==TBIL.sinp(x,1)).substitute_function(cos(x)==TBIL.cosp(x,1)).substitute_function(tan(x)==TBIL.tanp(x,1)).substitute_function(sec(x)==TBIL.secp(x,1)).substitute_function(csc(x)==TBIL.cscp(x,1)) |
There was a problem hiding this comment.
Instead of using TBIL.sinp,etc. directly, this allows users to do whatever they want with built in trig functions, and then right before displaying call this on the expression they want to typeset. So users should hopefully never need the TBIL.sinp functions.
There was a problem hiding this comment.
I like the solution + implementation, but I'm hanging on the naming of variables a bit. E.g. I'd expect TBIL.typeset_trigpowers to return a string or LatexExpr. Since I think you have another PR depending on this, I'll do the renaming in a separate PR.
|
@tdegeorge Can you take a look at the Checkit previews here and double check that they look okay? I think everything should be typeset as desired now. |
🚀 Preview available 🚀https://eb9ee7b6.tbil.pages.dev
|
|
It looks like it worked! :) |
This relies on #684 , but closes #826