Difference between revisions of "Solver solution section"

From Algebra.Com's Help
Jump to: navigation, search
(One intermediate revision by one other user not shown)
(No difference)

Latest revision as of 10:32, 17 January 2006

This article is part of the help section on Defining solvers.

Obviously, any solver needs to provide a solution to a problem that it is defining. The solution section does just that. As any other section, it is defined by entering, on a separate line, on the beginning of the line,

==section solution

A solution can be defined in two languages (so far):

  • Text-like language that simply has a few special tags that define a solution. This would be typical for a regular word problem , where a word problem would be reduced to a known math problem (such as a linear system) and then you would refer to the linear calculator. I call this malnguage the Markup language. See Defining markup solution.
  • Perl. Perl is a powerful programming language that allows to perform tasks of arbitrary complexity. Perl code is executed in a safe environment, so that malicious code would not be able to execute or gainunauthorized permission. You would write your code as you would write a script on your first day in your perl class. See Defining perl solution.

If you think that I need to add support for another programming language, please write me at ichudov@algebra.com. I am open minded.

A solution must pass syntax checks to be usable. It has inputs defined in the input section, and must produce outputs defined in output section.