The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: What's in an expression?
Replies: 2   Last Post: Mar 17, 2014 2:27 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
David Bailey

Posts: 714
Registered: 11/7/08
Re: What's in an expression?
Posted: Mar 17, 2014 2:27 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 10/03/2014 08:38, wrote:
> Hi all,
> I'm building a little Mathematica system that checks answers entered by students. Suppose the question is "what is Sin'[x]?" ad the student responds: Sin'[x] which is "correct", but not the intended answer (Cos[x]). I'm wondering if there is a general way to approach this sort of problem. In particular, is there a way to find out whether a given expression includes certain elements (like Derivative)?
> Thank you in advance,
> Sam

Of course, you can search an expression for particular symbols, e.g.
FreeQ[Hold[Sin'[x]], Derivative]

(Note that you need the Hold, otherwise Mathematica will do the
evaluation itself!)

This leads me to the obvious question as to how you will prevent
students using Mathematica to obtain the answers anyway!

I can't help thinking there are much more inspiring ways to use
Mathematica to teach!

David Bailey

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.