Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #16661

Re: What's in an expression?

From David Bailey <dave@removedbailey.co.uk>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: What's in an expression?
Date 2014-03-17 06:27 +0000
Message-ID <lg64ki$glp$1@smc.vnet.net> (permalink)
References <lfjtmt$hj2$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


On 10/03/2014 08:38, sam.takoy@yahoo.com 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
http://www.dbaileyconsultancy.co.uk

Back to comp.soft-sys.math.mathematica | Previous | NextPrevious in thread | Find similar


Thread

What's in an expression? sam.takoy@yahoo.com - 2014-03-10 08:38 +0000
  Re: What's in an expression? "Nasser M. Abbasi" <nma@12000.org> - 2014-03-11 07:16 +0000
  Re: What's in an expression? David Bailey <dave@removedbailey.co.uk> - 2014-03-17 06:27 +0000

csiph-web