13template <IExpression BaseT, IExpression ArgumentT>
18class Log<Expression, Expression> :
public BinaryExpression<Log> {
21 Log(
const Log<Expression, Expression>& other) =
default;
23 Log(
const Expression& base,
const Expression& argument);
25 [[nodiscard]]
auto Simplify() const ->
std::unique_ptr<Expression> final;
27 [[nodiscard]] auto
Integrate(const Expression& integrationVariable) const ->
std::unique_ptr<Expression> final;
28 [[nodiscard]] auto
Differentiate(const Expression& differentiationVariable) const ->
std::unique_ptr<Expression> final;
41template <IExpression BaseT = Expression, IExpression ArgumentT = BaseT>
50 Log(
const BaseT& base,
const ArgumentT& argument)
#define EXPRESSION_CATEGORY(category)
Definition Expression.hpp:192
#define EXPRESSION_TYPE(type)
Definition Expression.hpp:181
A binary expression.
Definition BinaryExpression.hpp:79
auto Simplify() const -> std::unique_ptr< Expression > override
Simplifies this expression.
Definition BinaryExpression.hpp:200
auto Differentiate(const Expression &differentiationVariable) const -> std::unique_ptr< Expression > override
Tries to differentiate this function.
Definition BinaryExpression.hpp:128
auto Integrate(const Expression &integrationVariable) const -> std::unique_ptr< Expression > override
Attempts to integrate this expression using integration rules.
Definition BinaryExpression.hpp:205
The Log expression represents the logarithm of a base and an argument.
Definition Log.hpp:42
EXPRESSION_CATEGORY(BinExp)
auto operator=(const Log &other) -> Log &=default
Log(const Log< BaseT, ArgumentT > &other)
Definition Log.hpp:45
Log(const BaseT &base, const ArgumentT &argument)
Definition Log.hpp:50
@ BinExp
Definition Expression.hpp:45