Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/constants.py
blob: acaa6d622eb7dadaeb4e8de9501620319506581a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# -*- coding: utf-8 -*-
#Copyright (c) 2009, Walter Bender

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

OFFSET = 50
SWIDTH = 2400
SHEIGHT = 60
SCALE = SWIDTH - 2 * OFFSET
TABWIDTH = 100
SCREENOFFSET = 50

HTOP1 = 38
HTOP2 = 59
HTOP3 = 35

LEFT = 0
RIGHT = 1
TOP = 0
BOTTOM = 1

SLIDE = 0
STATOR = 1

CUSTOM = {'C': ['log(x,10)', 'pow(10,x)', 'x', '1', '10', '1'],
          'D': ['log(x,10)', 'pow(10,x)', 'x', '1', '10', '1'],
          'CI': ['log(10/x,10)', '10/pow(10,x)', 'x', '1', '10', '1'],
          'DI': ['log(10/x,10)', '10/pow(10,x)', 'x', '1', '10', '1'],
          'L': ['x/10', 'x*10', 'x', '0', '10', '0.5'],
          'L2': ['x/10', 'x*10', 'x', '0', '10', '0.5'],
          'A': ['log(x,10)/2', 'pow(10,x*2)', 'x', '1', '100', '9'],
          'A2': ['log(x,10)/2', 'pow(10,x*2)', 'x', '1', '100', '9'],
          'K': ['log(x,10)/3', 'pow(10,x*3)', 'x', '1', '1000', '99'],
          'K2': ['log(x,10)/3', 'pow(10,x*3)', 'x', '1', '1000', '99'],
          'S': ['log(sin(x*pi/180)*10,10)', 'asin(pow(10,x)/10)*180/pi',
                'x', '5', '90', '5'],
          'S2': ['log(sin(x*pi/180)*10,10)', 'asin(pow(10,x)/10)*180/pi',
                 'x', '5', '90', '5'],
          'T': ['log(tan(x*pi/180)*10,10)', 'atan(pow(10,x)/10)*180/pi',
                'x', '5', '45', '2.5'],
          'T2': ['log(tan(x*pi/180)*10,10)', 'atan(pow(10,x)/10)*180/pi',
                 'x', '5', '45', '2.5'],
          'Log': ['log(x,10)', 'pow(10,x)', 'round(log(x,10),2)',
                  '1', '10', '1'],
          'Log2': ['log(x,10)','pow(10,x)', 'round(log(x,10),2)',
                   '1', '10', '1'],
          'Ln': ['log(x,10)', 'pow(10,x)', 'round(log(x),2)', '1', '10', '1'],
          'Ln2': ['log(x,10)','pow(10,x)', 'round(log(x),2)', '1', '10', '1']}