Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
94390573
Commit
94390573
authored
May 24, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add cACOT mathematic functions
parent
ef930c82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
1 deletion
+45
-1
cell/model/FormulaObjects/mathematicFunctions.js
cell/model/FormulaObjects/mathematicFunctions.js
+45
-1
No files found.
cell/model/FormulaObjects/mathematicFunctions.js
View file @
94390573
...
...
@@ -56,7 +56,7 @@
var
_func
=
AscCommonExcel
.
_func
;
cFormulaFunctionGroup
[
'
Mathematic
'
]
=
cFormulaFunctionGroup
[
'
Mathematic
'
]
||
[];
cFormulaFunctionGroup
[
'
Mathematic
'
].
push
(
cABS
,
cACOS
,
cACOSH
,
cASIN
,
cASINH
,
cATAN
,
cATAN2
,
cATANH
,
cCEILING
,
cFormulaFunctionGroup
[
'
Mathematic
'
].
push
(
cABS
,
cACOS
,
cACOSH
,
cASIN
,
cASINH
,
cATAN
,
cATAN2
,
cATANH
,
c
ACOT
,
c
CEILING
,
cCOMBIN
,
cCOS
,
cCOSH
,
cDEGREES
,
cECMA_CEILING
,
cEVEN
,
cEXP
,
cFACT
,
cFACTDOUBLE
,
cFLOOR
,
cGCD
,
cINT
,
cISO_CEILING
,
cLCM
,
cLN
,
cLOG
,
cLOG10
,
cMDETERM
,
cMINVERSE
,
cMMULT
,
cMOD
,
cMROUND
,
cMULTINOMIAL
,
cODD
,
cPI
,
cPOWER
,
cPRODUCT
,
cQUOTIENT
,
cRADIANS
,
cRAND
,
cRANDBETWEEN
,
cROMAN
,
cROUND
,
cROUNDDOWN
,
cROUNDUP
,
cSERIESSUM
,
...
...
@@ -457,6 +457,50 @@
};
};
/**
* @constructor
* @extends {AscCommonExcel.cBaseFunction}
*/
//TODO скорее всего стоит
function
cACOT
()
{
this
.
name
=
"
ACOT
"
;
this
.
value
=
null
;
this
.
argumentsCurrent
=
0
;
}
cACOT
.
prototype
=
Object
.
create
(
cBaseFunction
.
prototype
);
cACOT
.
prototype
.
constructor
=
cACOT
;
cACOT
.
prototype
.
argumentsMin
=
1
;
cACOT
.
prototype
.
argumentsMax
=
1
;
cACOT
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
];
if
(
arg0
instanceof
cArea
||
arg0
instanceof
cArea3D
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
]);
}
arg0
=
arg0
.
tocNumber
();
if
(
arg0
instanceof
cError
)
{
return
this
.
value
=
arg0
;
}
else
if
(
arg0
instanceof
cArray
)
{
arg0
.
foreach
(
function
(
elem
,
r
,
c
)
{
if
(
elem
instanceof
cNumber
)
{
var
a
=
Math
.
PI
/
2
-
Math
.
atan
(
elem
.
getValue
());
this
.
array
[
r
][
c
]
=
isNaN
(
a
)
?
new
cError
(
cErrorType
.
not_numeric
)
:
new
cNumber
(
a
);
}
else
{
this
.
array
[
r
][
c
]
=
new
cError
(
cErrorType
.
wrong_value_type
);
}
});
return
this
.
value
=
arg0
;
}
else
{
var
a
=
Math
.
PI
/
2
-
Math
.
atan
(
arg0
.
getValue
());
return
this
.
value
=
isNaN
(
a
)
?
new
cError
(
cErrorType
.
not_numeric
)
:
new
cNumber
(
a
);
}
};
cACOT
.
prototype
.
getInfo
=
function
()
{
return
{
name
:
this
.
name
,
args
:
"
( x )
"
};
};
/**
* @constructor
* @extends {AscCommonExcel.cBaseFunction}
...
...
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