Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
589dcfcc
Commit
589dcfcc
authored
11 years ago
by
Adam Palay
Browse files
Options
Downloads
Patches
Plain Diff
change calcfunctions -> functions
parent
2284f56e
No related branches found
Branches containing commit
Tags
release-2021-05-04-10.16
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
common/lib/calc/calc/__init__.py
+5
-0
5 additions, 0 deletions
common/lib/calc/calc/__init__.py
common/lib/calc/calc/calc.py
+13
-13
13 additions, 13 deletions
common/lib/calc/calc/calc.py
common/lib/calc/calc/functions.py
+0
-0
0 additions, 0 deletions
common/lib/calc/calc/functions.py
with
18 additions
and
13 deletions
common/lib/calc/calc/__init__.py
+
5
−
0
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
*
This diff is collapsed.
Click to expand it.
common/lib/calc/calc/calc.py
+
13
−
13
View file @
589dcfcc
...
...
@@ -9,7 +9,7 @@ import operator
import
numbers
import
numpy
import
scipy.constants
import
calc
functions
import
functions
from
pyparsing
import
(
Word
,
Literal
,
CaselessLiteral
,
ZeroOrMore
,
MatchFirst
,
Optional
,
Forward
,
...
...
@@ -20,9 +20,9 @@ DEFAULT_FUNCTIONS = {
'
sin
'
:
numpy
.
sin
,
'
cos
'
:
numpy
.
cos
,
'
tan
'
:
numpy
.
tan
,
'
sec
'
:
calc
functions
.
sec
,
'
csc
'
:
calc
functions
.
csc
,
'
cot
'
:
calc
functions
.
cot
,
'
sec
'
:
functions
.
sec
,
'
csc
'
:
functions
.
csc
,
'
cot
'
:
functions
.
cot
,
'
sqrt
'
:
numpy
.
sqrt
,
'
log10
'
:
numpy
.
log10
,
'
log2
'
:
numpy
.
log2
,
...
...
@@ -31,24 +31,24 @@ DEFAULT_FUNCTIONS = {
'
arccos
'
:
numpy
.
arccos
,
'
arcsin
'
:
numpy
.
arcsin
,
'
arctan
'
:
numpy
.
arctan
,
'
arcsec
'
:
calc
functions
.
arcsec
,
'
arccsc
'
:
calc
functions
.
arccsc
,
'
arccot
'
:
calc
functions
.
arccot
,
'
arcsec
'
:
functions
.
arcsec
,
'
arccsc
'
:
functions
.
arccsc
,
'
arccot
'
:
functions
.
arccot
,
'
abs
'
:
numpy
.
abs
,
'
fact
'
:
math
.
factorial
,
'
factorial
'
:
math
.
factorial
,
'
sinh
'
:
numpy
.
sinh
,
'
cosh
'
:
numpy
.
cosh
,
'
tanh
'
:
numpy
.
tanh
,
'
sech
'
:
calc
functions
.
sech
,
'
csch
'
:
calc
functions
.
csch
,
'
coth
'
:
calc
functions
.
coth
,
'
sech
'
:
functions
.
sech
,
'
csch
'
:
functions
.
csch
,
'
coth
'
:
functions
.
coth
,
'
arcsinh
'
:
numpy
.
arcsinh
,
'
arccosh
'
:
numpy
.
arccosh
,
'
arctanh
'
:
numpy
.
arctanh
,
'
arcsech
'
:
calc
functions
.
arcsech
,
'
arccsch
'
:
calc
functions
.
arccsch
,
'
arccoth
'
:
calc
functions
.
arccoth
'
arcsech
'
:
functions
.
arcsech
,
'
arccsch
'
:
functions
.
arccsch
,
'
arccoth
'
:
functions
.
arccoth
}
DEFAULT_VARIABLES
=
{
'
i
'
:
numpy
.
complex
(
0
,
1
),
...
...
This diff is collapsed.
Click to expand it.
common/lib/calc/calc/
calc
functions.py
→
common/lib/calc/calc/functions.py
+
0
−
0
View file @
589dcfcc
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment