mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
This method is to be implemented by derivable expression subclasses, for use in Derivative::shallowReduce. It performs the calculation for the derivative, and returns whether calculations happened. Change-Id: I13cdb131e2044578392f5178a9f389314c1c4c8a
18 lines
626 B
C++
18 lines
626 B
C++
#include <poincare/derivative.h>
|
|
#include <poincare/init.h>
|
|
#include <poincare/src/parsing/parser.h>
|
|
#include <poincare_nodes.h>
|
|
#include <apps/shared/global_context.h>
|
|
#include "helper.h"
|
|
|
|
using namespace Poincare;
|
|
|
|
void assert_differentiates_as(Expression expression, Expression derivative, const char * information) {
|
|
Shared::GlobalContext globalContext;
|
|
Expression expressionReduced = expression.reduce(ExpressionNode::ReductionContext(&globalContext, Cartesian, Radian, User));
|
|
quiz_assert_print_if_failure(expressionReduced.isIdenticalTo(derivative), information);
|
|
}
|
|
|
|
QUIZ_CASE(poincare_differential_addition) {
|
|
|
|
} |