Is there a way to make the CL accept a list of values as an answer for evaluateAt?
on slide 11 in the linked activity, I want any answer between 13.5 and 14.5 to be accepted as correct for the purpose of the activity, and I just sort of brute forced it, but it feels sloppy.
You can use inequalities.
... f.evaluateAt(2)>=13.5 and f.evaluateAt(2)<=14.5 ...
This is also a really cool activity.
1 Like
So simple! I’ve been self teaching myself the CL and now I feel like a dummy.
Thank you so much.
1 Like