Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1
mathiu : a simple computer algebra system in C++.
License
NotificationsYou must be signed in to change notification settings
BowenFu/mathiu.cpp
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
mathiu : a simple computer algebra system in C++
The library originated as a demo library showing the usage of the C++ pattern matching librarymatch(it).
But now it is developed independently.
autoconst x ="x"_s;autoconst e = x ^ (2_i / 3_i);autoconst d = diff(e, x);// prints (* 2/3 (^ x -1/3))std::cout << toString(d) << std::endl;
autoconst x ="x"_s;autoconst eq = 2_i * x * x - 3_i * x + 1_i == 0_i;autoconst solutions = solve(eq, x);// prints {1/2 1}std::cout << toString(solutions) << std::endl;
autoconste1 = ("x"_s ^ 2_i) - 1_i;autoconste2 = (("x"_s - 3_i) ^ 2_i) - 3_i;;autoconst ineq =e1 >e2;autoconst suolutions = solveInequation(ineq,"x"_s);// prints (OOInterval 7/6 inf)std::cout << toString(solutions) << std::endl;
auto e = min(max(-"x"_s,"x"_s), 2_i);autoconst domain = interval(-3_i,true, 3_i,true);autoconst range = functionRange(e,"x"_s, domain);// prints (CCInterval 0 2)std::cout << toString(range) << std::endl;
About
mathiu : a simple computer algebra system in C++.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.