Show EOL distros:
ecl_core: ecl_command_line | ecl_concepts | ecl_containers | ecl_converters | ecl_core_apps | ecl_devices | ecl_eigen | ecl_exceptions | ecl_formatters | ecl_geometry | ecl_ipc | ecl_linear_algebra | ecl_math | ecl_mpl | ecl_sigslots | ecl_statistics | ecl_streams | ecl_threads | ecl_time | ecl_type_traits | ecl_utilities
Package Summary
Released
Documented
This package provides simple support to cmath, filling in holes or redefining in a c++ formulation where desirable.
- Maintainer status: maintained
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_core/issues
- Source: git https://github.com/stonier/ecl_core.git (branch: release/0.62-noetic)
Contents
Compiling & Linking
Include the following at the top of any translation unit:
Toggle line numbers
1 #include <ecl/math.hpp>
2
3 // constants
4 using ecl::pi; // also pi_2, pi_4
5
6 // simple functions
7 using ecl::EuclideanNorm;
8 using ecl::isApprox;
9 using ecl::isApproxOrLessThan;
10 using ecl::sign; // also psign
11 using ecl::cube_root; // only for real numbers/solutions
12
Tutorial
Simple Math - simple math constants and functions.