Files
Upsilon/poincare/src/tangent.cpp
Felix Raimundo ed2c4cfb59 First version of the simplifications.
Change-Id: Idbddb92b6bd098d6b862f5fc4abd741948e15194
2016-04-01 11:32:11 +02:00

26 lines
522 B
C++

#include <poincare/tangent.h>
#include "layout/horizontal_layout.h"
Expression * Tangent::clone() {
return new Tangent(m_arg, true);
}
Expression::Type Tangent::type() {
return Expression::Type::Tangent;
}
float Tangent::approximate(Context& context) {
// FIXME: use tangent obviously.
return m_arg->approximate(context);
}
#ifdef DEBUG
int Tangent::getPrintableVersion(char* txt) {
const char* printable = "tan";
for(int i=0; printable[i]!='\0'; i++) {
txt[i] = printable[i];
}
return 3;
}
#endif