Skip to content
Snippets Groups Projects
Commit be87484c authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Moved unicode PI to separate unicode tokens file.

parent 279f4039
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,8 @@ from graph_drawing.graph import generate_graph
from graph_drawing.line import generate_line
from graph_drawing.node import Node, Leaf
from unicode_math import PI as u_PI
TYPE_OPERATOR = 1
TYPE_IDENTIFIER = 2
......@@ -360,7 +362,7 @@ class ExpressionLeaf(Leaf, ExpressionBase):
# Replace PI leaf by the Greek character
if val == PI:
val = 'π'
val = u_PI
return '-' * self.negated + val
......
# vim: set fileencoding=utf-8 :
SQRT = ''
CBRT = ''
FORT = ''
PI = 'π'
INFINITY = ''
SUP = {
'0': '',
'1': '¹',
'2': '²',
'3': '³',
'3': '',
'5': '',
'6': '',
'7': '',
'8': '',
'9': '',
}
DOT = ''
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment