|
DblPend
|
Provides the function for reading inputs and the function for checking the physical constraints on the input. More...
#include <string>Go to the source code of this file.
Functions | |
| void | get_input (string filename, double &L_1, double &L_2, double &m_1, double &m_2) |
| Reads input from a file with the given file name. | |
| void | input_constraints (double L_1, double L_2, double m_1, double m_2) |
| Verifies that input values satisfy the physical constraints. | |
Provides the function for reading inputs and the function for checking the physical constraints on the input.
| void get_input | ( | string | filename, |
| double & | L_1, | ||
| double & | L_2, | ||
| double & | m_1, | ||
| double & | m_2 ) |
Reads input from a file with the given file name.
| filename | name of the input file |
| L_1 | length of the first rod (m) |
| L_2 | length of the second rod (m) |
| m_1 | mass of the first object (kg) |
| m_2 | mass of the second object (kg) |
| void input_constraints | ( | double | L_1, |
| double | L_2, | ||
| double | m_1, | ||
| double | m_2 ) |
Verifies that input values satisfy the physical constraints.
| L_1 | length of the first rod (m) |
| L_2 | length of the second rod (m) |
| m_1 | mass of the first object (kg) |
| m_2 | mass of the second object (kg) |