On the other hand, if I define/assign

$F = Formula( "cos(theta)" ) ;

then the resulting TeX string is "\cos(theta)" rather than "\cos(\theta)".

Am I overlooking something fairly simple to fix this?

This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 5 posting(s) in 1 day

I have no difficulty asking for, and then checking, a student answer involving a polar coordinate formula, f(theta), after "Context() -> variables -> are( theta => 'Real' ) ;" and a text note "Write ${LQ}theta${RQ} (without quotes) to enter \( \theta \)".

On the other hand, if I define/assign

$F = Formula( "cos(theta)" ) ;

then the resulting TeX string is "\cos(theta)" rather than "\cos(\theta)".

Am I overlooking something fairly simple to fix this?

In reply to Dick Lane
### Re: MathObjects involving polar coordinates -- TeX format

by Jason Aubrey - Thursday, 2 June 2011, 9:09 PM

Hi Dick,

I think

Context() -> variables -> set(theta=> {TeX=>'\theta'});

will do it.

Jason

I think

Context() -> variables -> set(theta=> {TeX=>'\theta'});

will do it.

Jason

In reply to Jason Aubrey
### Re: MathObjects involving polar coordinates -- TeX format

by Dick Lane - Thursday, 2 June 2011, 9:55 PM

Thanks, Jason --- that does the job.

In reply to Jason Aubrey
### Re: MathObjects involving polar coordinates -- TeX format

by Davide Cervone - Friday, 3 June 2011, 10:38 AM

You may want to make that

Davide

`TeX=>'\theta '`

with a space. I don't remember whether the system will insert the space for you if the theta is followed by another letter, for example. It probably should, but my recollection is that it might not. You could test it by entering an answer of 'theta x' for example (but you'd also have to add the variable 'x'), and seeing if the typeset answer is properly processed or not.Davide

You are currently using guest access (Log in)