Numworks Epsilon
1.4.1
Graphing Calculator Operating System
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
+
Enumerations
a
b
c
d
e
f
l
m
o
p
q
r
s
t
w
Enumerator
+
Related Functions
a
b
c
d
f
g
h
i
l
m
n
o
p
r
s
t
u
w
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Variables
_
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
+
Typedefs
a
b
c
d
e
f
g
i
k
m
n
q
r
s
u
v
Enumerations
+
Enumerator
i
l
m
p
r
s
u
+
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
symbol.cpp
Go to the documentation of this file.
1
#include <
quiz.h
>
2
#include <
poincare.h
>
3
#include <cmath>
4
#include <
ion.h
>
5
#include <
assert.h
>
6
#include "
helper.h
"
7
8
using namespace
Poincare
;
9
10
QUIZ_CASE
(poincare_parse_symbol) {
11
assert_parsed_expression_type
(
"P"
,
Expression::Type::Symbol
);
12
assert_parsed_expression_type
(
"X"
,
Expression::Type::Symbol
);
13
assert_parsed_expression_type
(
"I"
,
Expression::Type::Symbol
);
14
assert_parsed_expression_type
(
"1.2E3"
,
Expression::Type::Decimal
);
15
assert_parsed_expression_type
(
"ans"
,
Expression::Type::Symbol
);
16
}
17
18
19
QUIZ_CASE
(poincare_symbol_approximate) {
20
Complex<double>
a[1] = {
Complex<double>::Float
(
M_PI
)};
21
assert_parsed_expression_evaluates_to
(
"P"
, a);
22
Complex<float>
b[1] = {
Complex<float>::Float
(
M_E
)};
23
assert_parsed_expression_evaluates_to
(
"X"
, b);
24
Complex<double>
c
[1] = {
Complex<double>::Float
(1200.0)};
25
assert_parsed_expression_evaluates_to
(
"1.2E3"
,
c
);
26
}
27
Poincare::Expression::Type::Symbol
poincare.h
ion.h
M_PI
#define M_PI
Definition:
math.h:17
Poincare
Definition:
absolute_value.h:8
assert_parsed_expression_type
void assert_parsed_expression_type(const char *expression, Poincare::Expression::Type type)
Definition:
helper.cpp:54
assert.h
c
c(generic_all_nodes)
M_E
#define M_E
Definition:
math.h:12
Poincare::Complex< double >
assert_parsed_expression_evaluates_to
void assert_parsed_expression_evaluates_to(const char *expression, Complex< T > *results, int numberOfRows, int numberOfColumns, Expression::AngleUnit angleUnit)
Definition:
helper.cpp:69
quiz.h
Poincare::Complex::Float
static Complex< T > Float(T x)
Definition:
complex.cpp:23
Poincare::Expression::Type::Decimal
QUIZ_CASE
QUIZ_CASE(poincare_parse_symbol)
Definition:
symbol.cpp:10
helper.h
epsilon
poincare
test
symbol.cpp
Generated by
1.8.14