Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16624 > unrolled thread
| Started by | sam.takoy@yahoo.com |
|---|---|
| First post | 2014-03-10 08:38 +0000 |
| Last post | 2014-03-17 06:27 +0000 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
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
| From | sam.takoy@yahoo.com |
|---|---|
| Date | 2014-03-10 08:38 +0000 |
| Subject | What's in an expression? |
| Message-ID | <lfjtmt$hj2$1@smc.vnet.net> |
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
[toc] | [next] | [standalone]
| From | "Nasser M. Abbasi" <nma@12000.org> |
|---|---|
| Date | 2014-03-11 07:16 +0000 |
| Message-ID | <lfmd7n$n68$1@smc.vnet.net> |
| In reply to | #16624 |
On 3/10/2014 3:38 AM, sam.takoy@yahoo.com wrote: > Hi all, The FullForm[expr] shows what is in the expression.
[toc] | [prev] | [next] | [standalone]
| From | David Bailey <dave@removedbailey.co.uk> |
|---|---|
| Date | 2014-03-17 06:27 +0000 |
| Message-ID | <lg64ki$glp$1@smc.vnet.net> |
| In reply to | #16624 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web