| 352 | } |
| 353 | |
| 354 | std::string fileread(const std::string &filename) { |
| 355 | std::ifstream t(filename); |
| 356 | if (!t) { |
| 357 | throw std::system_error(errno, std::system_category(), filename); |
| 358 | } |
| 359 | std::string str((std::istreambuf_iterator<char>(t)), |
| 360 | std::istreambuf_iterator<char>()); |
| 361 | return str; |
| 362 | } |
| 363 | |
| 364 | double cosd(double degrees) { |
| 365 | // 0 -> 0 |