One way is to save the general formulas in your database, i.e. the example you specified ax^2 + bx + c . An example database called formulas :
id_formulas formula_problem constants type formula_solution 1 ax^2 + bx + c = 0 a{split}b{split}c polynomial x = (-1*{b} + ({b}^2 - 4*{a}*{c}) ) / 2*{a} {split} x = (-1*{b} - ({b}^2 - 4*{a}*{c}) ) / 2*{a} 2 y = mx + bb{split}m{split}y graph x = ({b} - {y}) / -1*{m} 3 etc etc etc etc
Then (psuedocode):
- application retrieves random
formula_problem from database (any type or specific type) - the application assigns randomly generated numbers to constants, i.e. "b = 1, m = 2, y = .5"
- app swaps constants in
formula_solution with numbers from step 2 (inside {} so easy to find) - the application solves for x and encrypts the response (in the case of quadratic answer 2,
Split("{split}") into an array) - displays the application in a web browser and asks the student to decide: "y = mx + b" and "b = 1, m = 2, y = .5" Application
- also places the encrypted response in a hidden form field on the web page.
- the student decides for x, then enters the answer in the text box and presses the submit button
- The application compares the student’s decision with the decrypted hidden solution.
- displays the application for the web browser: "right / wrong" along with the correct answer
This web application can be written in Java / C # .NET / VB.NET / PHP / any web technology. The database can be SQL Server / MySQL / PostgreSQL / XML / etc. Processing can be performed on the server side in one of the above languages or, as soon as the data (formula) is retrieved from the database, processing can be performed on the client side of JavaScript.
This question is very open, because there are many approaches that a developer can take, and it comes down to preference. My personal opinion is that it would be more difficult to program some of these materials on the client side on the JavaScript side or on the server side C # or PHP.
If you already know any computer languages, that is, C ++, then select a scripting technology that looks the same and start learning by reading books and online tutorials / code samples.
(sorry, but I'm not a mathematician)
Johnb
source share