Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
589dcfcc
Commit
589dcfcc
authored
Aug 30, 2013
by
Adam Palay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change calcfunctions -> functions
parent
2284f56e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
13 deletions
+18
-13
common/lib/calc/calc/__init__.py
+5
-0
common/lib/calc/calc/calc.py
+13
-13
common/lib/calc/calc/functions.py
+0
-0
No files found.
common/lib/calc/calc/__init__.py
View file @
589dcfcc
"""
Ideally, we wouldn't need to pull in all the calc symbols here,
but courses were using 'import calc', so we need this for
backwards compatibility
"""
from
calc
import
*
from
calc
import
*
common/lib/calc/calc/calc.py
View file @
589dcfcc
...
@@ -9,7 +9,7 @@ import operator
...
@@ -9,7 +9,7 @@ import operator
import
numbers
import
numbers
import
numpy
import
numpy
import
scipy.constants
import
scipy.constants
import
calc
functions
import
functions
from
pyparsing
import
(
from
pyparsing
import
(
Word
,
Literal
,
CaselessLiteral
,
ZeroOrMore
,
MatchFirst
,
Optional
,
Forward
,
Word
,
Literal
,
CaselessLiteral
,
ZeroOrMore
,
MatchFirst
,
Optional
,
Forward
,
...
@@ -20,9 +20,9 @@ DEFAULT_FUNCTIONS = {
...
@@ -20,9 +20,9 @@ DEFAULT_FUNCTIONS = {
'sin'
:
numpy
.
sin
,
'sin'
:
numpy
.
sin
,
'cos'
:
numpy
.
cos
,
'cos'
:
numpy
.
cos
,
'tan'
:
numpy
.
tan
,
'tan'
:
numpy
.
tan
,
'sec'
:
calc
functions
.
sec
,
'sec'
:
functions
.
sec
,
'csc'
:
calc
functions
.
csc
,
'csc'
:
functions
.
csc
,
'cot'
:
calc
functions
.
cot
,
'cot'
:
functions
.
cot
,
'sqrt'
:
numpy
.
sqrt
,
'sqrt'
:
numpy
.
sqrt
,
'log10'
:
numpy
.
log10
,
'log10'
:
numpy
.
log10
,
'log2'
:
numpy
.
log2
,
'log2'
:
numpy
.
log2
,
...
@@ -31,24 +31,24 @@ DEFAULT_FUNCTIONS = {
...
@@ -31,24 +31,24 @@ DEFAULT_FUNCTIONS = {
'arccos'
:
numpy
.
arccos
,
'arccos'
:
numpy
.
arccos
,
'arcsin'
:
numpy
.
arcsin
,
'arcsin'
:
numpy
.
arcsin
,
'arctan'
:
numpy
.
arctan
,
'arctan'
:
numpy
.
arctan
,
'arcsec'
:
calc
functions
.
arcsec
,
'arcsec'
:
functions
.
arcsec
,
'arccsc'
:
calc
functions
.
arccsc
,
'arccsc'
:
functions
.
arccsc
,
'arccot'
:
calc
functions
.
arccot
,
'arccot'
:
functions
.
arccot
,
'abs'
:
numpy
.
abs
,
'abs'
:
numpy
.
abs
,
'fact'
:
math
.
factorial
,
'fact'
:
math
.
factorial
,
'factorial'
:
math
.
factorial
,
'factorial'
:
math
.
factorial
,
'sinh'
:
numpy
.
sinh
,
'sinh'
:
numpy
.
sinh
,
'cosh'
:
numpy
.
cosh
,
'cosh'
:
numpy
.
cosh
,
'tanh'
:
numpy
.
tanh
,
'tanh'
:
numpy
.
tanh
,
'sech'
:
calc
functions
.
sech
,
'sech'
:
functions
.
sech
,
'csch'
:
calc
functions
.
csch
,
'csch'
:
functions
.
csch
,
'coth'
:
calc
functions
.
coth
,
'coth'
:
functions
.
coth
,
'arcsinh'
:
numpy
.
arcsinh
,
'arcsinh'
:
numpy
.
arcsinh
,
'arccosh'
:
numpy
.
arccosh
,
'arccosh'
:
numpy
.
arccosh
,
'arctanh'
:
numpy
.
arctanh
,
'arctanh'
:
numpy
.
arctanh
,
'arcsech'
:
calc
functions
.
arcsech
,
'arcsech'
:
functions
.
arcsech
,
'arccsch'
:
calc
functions
.
arccsch
,
'arccsch'
:
functions
.
arccsch
,
'arccoth'
:
calc
functions
.
arccoth
'arccoth'
:
functions
.
arccoth
}
}
DEFAULT_VARIABLES
=
{
DEFAULT_VARIABLES
=
{
'i'
:
numpy
.
complex
(
0
,
1
),
'i'
:
numpy
.
complex
(
0
,
1
),
...
...
common/lib/calc/calc/
calc
functions.py
→
common/lib/calc/calc/functions.py
View file @
589dcfcc
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment