Using exponent function in the calculated Questions

Using exponent function in the calculated Questions

por Ranjith Valliyedath -
Número de respostas: 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.

Média das avaliações:  -
Em resposta à Ranjith Valliyedath

Esta postagem no fórum foi removida

O conteúdo desta postagem no fórum foi removido e não pode mais ser acessado.
Em resposta à Usuário excluído

Re: Using exponent function in the calculated Questions

por 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.

Em resposta à Ranjith Valliyedath

Esta postagem no fórum foi removida

O conteúdo desta postagem no fórum foi removido e não pode mais ser acessado.
Em resposta à Usuário excluído

Re: Using exponent function in the calculated Questions

por 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.

Em resposta à Tiffany Hoefer

Esta postagem no fórum foi removida

O conteúdo desta postagem no fórum foi removido e não pode mais ser acessado.
Em resposta à Usuário excluído

Re: Using exponent function in the calculated Questions

por 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.

Em resposta à Ranjith Valliyedath

Re: Using exponent function in the calculated Questions

por 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.

Em resposta à Peter Halverson

Re: Using exponent function in the calculated Questions

por Tiffany Hoefer -

Peter, 

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