Displaying functions in STACK

Displaying functions in STACK

by Mike Taylor -
Number of replies: 2

Hi,

I'm trying to display a function as assigned below:

a:rand(7)+2;
f(x):=x^2 + a*x;

In the question text I have the following:

Find the rate of change of \[y(x)={@f(x)@}\]

which renders like this:

STACK

Is it possible to display the function without the dot between x and it's coefficient?

I'm mass producing questions so would really like to avoid typing the function in full as below, if at all possible

Find the rate of change of \[y(x)=x^2+ {@a@}x]
Many thanks in advance.

Mike

Average of ratings: -
In reply to Mike Taylor

Re: Displaying functions in STACK

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

There is a setting for how STACK displayes multiplication.

You can set it differently for each question, and you can set a default in the admin settings.

Average of ratings: Useful (1)
In reply to Tim Hunt

Re: Displaying functions in STACK

by Mike Taylor -

Brilliant! Thanks Tim - I completely missed that.