Skip to content
Snippets Groups Projects
Commit 2659b960 authored by Alexander Rose's avatar Alexander Rose
Browse files

added math.cbrt to mol-script

parent a8be8470
No related branches found
No related tags found
No related merge requests found
...@@ -121,6 +121,7 @@ const math = { ...@@ -121,6 +121,7 @@ const math = {
roundInt: unaryOp(Type.Num), roundInt: unaryOp(Type.Num),
abs: unaryOp(Type.Num), abs: unaryOp(Type.Num),
sqrt: unaryOp(Type.Num), sqrt: unaryOp(Type.Num),
cbrt: unaryOp(Type.Num),
sin: unaryOp(Type.Num), sin: unaryOp(Type.Num),
cos: unaryOp(Type.Num), cos: unaryOp(Type.Num),
tan: unaryOp(Type.Num), tan: unaryOp(Type.Num),
...@@ -189,5 +190,3 @@ export const SymbolMap = (function() { ...@@ -189,5 +190,3 @@ export const SymbolMap = (function() {
})(); })();
export default table; export default table;
...@@ -119,6 +119,7 @@ const symbols = [ ...@@ -119,6 +119,7 @@ const symbols = [
C(MolScript.core.math.roundInt, (ctx, v) => Math.round(v[0](ctx))), C(MolScript.core.math.roundInt, (ctx, v) => Math.round(v[0](ctx))),
C(MolScript.core.math.abs, (ctx, v) => Math.abs(v[0](ctx))), C(MolScript.core.math.abs, (ctx, v) => Math.abs(v[0](ctx))),
C(MolScript.core.math.sqrt, (ctx, v) => Math.sqrt(v[0](ctx))), C(MolScript.core.math.sqrt, (ctx, v) => Math.sqrt(v[0](ctx))),
C(MolScript.core.math.cbrt, (ctx, v) => Math.cbrt(v[0](ctx))),
C(MolScript.core.math.sin, (ctx, v) => Math.sin(v[0](ctx))), C(MolScript.core.math.sin, (ctx, v) => Math.sin(v[0](ctx))),
C(MolScript.core.math.cos, (ctx, v) => Math.cos(v[0](ctx))), C(MolScript.core.math.cos, (ctx, v) => Math.cos(v[0](ctx))),
C(MolScript.core.math.tan, (ctx, v) => Math.tan(v[0](ctx))), C(MolScript.core.math.tan, (ctx, v) => Math.tan(v[0](ctx))),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment