limes 3.1.0
Composable Calculus Expressions for C++20
Loading...
Searching...
No Matches
expr.hpp File Reference

Expression layer for composable calculus expressions. More...

#include "concepts.hpp"
#include "nodes/const.hpp"
#include "nodes/var.hpp"
#include "nodes/named_var.hpp"
#include "nodes/binary.hpp"
#include "nodes/unary.hpp"
#include "nodes/pow.hpp"
#include "nodes/primitives.hpp"
#include "nodes/binary_func.hpp"
#include "nodes/bound.hpp"
#include "nodes/conditional.hpp"
#include "nodes/sum_product.hpp"
#include "derivative.hpp"
#include "derivative_builder.hpp"
#include "antiderivatives.hpp"
#include "integral.hpp"
#include "product_integral.hpp"
#include "analysis.hpp"
#include "to_string.hpp"
+ Include dependency graph for expr.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  limes::expr
 Expression layer for composable calculus.
 
namespace  limes
 

Detailed Description

Expression layer for composable calculus expressions.

This module provides the user-facing API for building, differentiating, and integrating mathematical expressions. Derivatives are computed symbolically via chain rule at compile time; integrals are evaluated numerically with pluggable methods.

Usage

using namespace limes::expr;
auto x = arg<0>; // First variable
auto f = sin(x*x); // sin(x²)
auto df = derivative(f).wrt<0>(); // d/dx[sin(x²)] = 2x·cos(x²)
auto I = integral(x*x).over<0>(0.0, 1.0); // ∫₀¹ x² dx
auto result = I.eval(); // ≈ 1/3
Expression layer for composable calculus.
Definition analysis.hpp:7

Definition in file expr.hpp.