Wondering if anyone can give me some advice. I have created a slide to check correctness for Expanding/Condensing logs but I think there is probably a better way to do this. I used pattern matching. It would have been nice to have a “log” pattern match.
Looks like natural log is not recognized in CL without a backslash before it. I figured out a hack to make an evaluative method work by converting student latex into text first (since it will insert the slashes), then using that text for a simpleFunction in concert with some basic pattern matching:
suffix: when matchExp "✅" otherwise "NO"
(Edit: I was hoping this would be a way to get function notation to work, but no dice.)
oh wow, converting it to text works…Great to know. Thank you.
Any Idea how I would pattern match
I’d probably verify that it’s a single expression and not( ) a sum or difference, and maybe use countNumberUsage for the 5 and 3.