Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I want to write a problem generator for differentiation.Basically that should be able to generate questions randomly like d/dx(10 sech(x)+10 log(x) cosh^(-1)(sin(x)))how can I generate? Could you please help me how should I proceed .
Thanks in advance
Posted
Updated 27-Jan-10 0:08am
v2

1 solution

Make one? Search Code Project to see if there is an article on this subject? Search Google to see if you can find some code? What is your question? You're going to have to be a little more specific.

At the highest level, you can keep an array of operators and combine them with randomly chosen numbers. Randomly choose which operators and the number of operators to combine. You might want to throw in some recursion if you want to use parentheses. That will generate various problems which you can differentiate.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900