Skip to content

Commit

Permalink
extend core functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Metelkin committed Jan 17, 2024
1 parent 5346c69 commit 874f74b
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cases/24-define-function/src/index.heta
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,21 @@
arguments: [x,y],
math: f8(x)*f8(x)
};

// lost argument
#defineFunction f10 {
arguments: [x],
math: f8(x)*sin(y)
};
*/

// lost argument in internal function
#defineFunction f11 {
arguments: [x,y],
math: "f5()*pow(x)"
};


#defineUnit u1 {
units: litre^2,
};
Expand Down
99 changes: 99 additions & 0 deletions src/container/core-items.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,5 +254,104 @@
{
"id": "ifeq", "action": "defineFunction",
"arguments": ["x", "y", "z1", "z2"]
},

{
"id": "acos", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "acot", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "acsc", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "asec", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "asin", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "atan", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "cos", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "cot", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "csc", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "sec", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "sin", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "tan", "action": "defineFunction",
"arguments": ["x"]
},


{
"id": "acosh", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "acoth", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "acsch", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "asech", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "asinh", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "atanh", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "cosh", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "coth", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "csch", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "sech", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "sinh", "action": "defineFunction",
"arguments": ["x"]
},
{
"id": "tanh", "action": "defineFunction",
"arguments": ["x"]
}
]

0 comments on commit 874f74b

Please sign in to comment.