/usr/share/doc/mathomatic/tests/poly.in is in mathomatic 16.0.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ; Combine 3 quadratic polynomial equations with 3 unknown coefficients (a, b, c).
; Solve for variables (a), (b), and (c).
clear all ; restart Mathomatic
; enter all 3 equations:
y1=a+b*x1+c*x1^2
y2=a+b*x2+c*x2^2
y3=a+b*x3+c*x3^2
2 ; select equation number 2 as the current equation
eliminate a ; eliminate variable (a) from the current equation
3 ; select equation number 3
eliminate a b ; eliminate variables (a) and then (b) from the current equation
solve verifiable c
simplify
2 ; select equation number 2 again
eliminate c using 3 ; find (b) by combining equation numbers 2 and 3
simplify
1 ; select equation number 1
eliminate c using 3, b using 2 ; find (a)
simplify fraction all ; display all solutions, converting to simple fractions first
|