Linear Equations: Tsuru-Kame-Zan
There are two different animals: cranes and turtles, and you see a total of
7 heads and 22 legs. Find the total number of each animal.
/* Tsuru-Kame-Zan */
K + T = HEAD
K*4 + T*2 = LEG
HEAD = 7
LEG = 22
OUTPUT T, K
Explanation
- Inside /**/ is freeform and any comments can be input. The 1st line is
used for a title and you can enter any characters.
- The asterisk mark ( * ) is used to represent multiplication.
- A maximum of 8 characters is allowed for variable names and both
numeric numbers and alphabets can be used. The first character must
always be an English letter.
- The OUTPUT statement specifies variables to be output.
Enter equations and click on the [Solve] button.
Sample problem
The following sample problems will help you understand how EQUATRAN-G works.
- Linear equations
- Tsuru-Kame-Zan (Japanese traditional problem,
means problem of cranes and tortoises)
- Nutrients problem
- Non-linear equations
- Root of 3rd order polynomial equation
- Loan calculation
- Ordinary differential equations
- 2nd order ordinary differential equation
- Optimization and least square problems
- Approximation in 3rd order polynomial equation
