Using exponent function in the calculated Questions

Using exponent function in the calculated Questions

by Ranjith Valliyedath -
Number of replies: 8

Hello All,

I have an answer formula "(((([y]/100)+1)**18-1)*[x] *1000)/([y]/100)" in a calculated question of WebCT CE6. I need to convert this question on the Moodle version. Please note that x and y are variables on this question.

Please help me.

Average of ratings: -
In reply to Ranjith Valliyedath

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: Using exponent function in the calculated Questions

by Ranjith Valliyedath -

Hi Pierre,

Many thanks for your reply. This will help. But i am still struggling to get the same answers which are appearing on the WebCT. Could you please provide me a answer formula for this one?

Regards,

Ranjith.

In reply to Ranjith Valliyedath

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: Using exponent function in the calculated Questions

by Tiffany Hoefer -
I am having a similar problem.  I tried to apply Pierre's example to my particular problem but I obviously still can't apply the logic.  Our instructor needs to measure exponents and decay and has the following question:


The Mendes family bought a new house {years} years ago for ${purchase},000. The house is now worth ${current},000. Assuming a steady rate of growth, what was the yearly rate of appreciation? Round your answer to the nearest tenth of a percent (1.2% etc)


They want the student to solve it by using the following formula:  1 minus {current} divided by {purchase} to the power of 1/{years}.


When I try to write the answer formula as:  1-{current}/{purchase}pow(1/{years}), I receive the error "the function 1pow is not supported".  I have tried many other incarnations but this was the most promising error message of all.  I usually receive a syntax error which leads me to believe that for those I just had it totally wrong.

Any ideas on how to render this formula?  Any kind words are appreciated.

In reply to Tiffany Hoefer

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: Using exponent function in the calculated Questions

by Tiffany Hoefer -

Pierre,

Thank you so much for your help!  These are quite tricky, and I really appreciate you getting me past the dreaded error screen.

In reply to Ranjith Valliyedath

Re: Using exponent function in the calculated Questions

by Peter Halverson -

Just a comment...

You should take a look at the "Formulas Question Type" for Moodle. 

https://moodle.org/plugins/view/qtype_formulas

I like it better than the "Calculated Question Type."

It does require an administrator to install it and it does take some effort to learn how to use it, but I think its easier than Calculated.

---Peter H.

In reply to Peter Halverson

Re: Using exponent function in the calculated Questions

by Tiffany Hoefer -

Peter, 

Thank you for the suggestion.  I'll definitely give it a look and see if our administrator will buy in.  Thanks!!