Commit b43c990b authored by GoshaZotov's avatar GoshaZotov

add NORM.S.INV formula

parent 0a9b8653
......@@ -4084,6 +4084,14 @@ $( function () {
} );
test( "Test: \"NORM.S.INV \"", function () {
oParser = new parserFormula( "NORM.S.INV(0.908789)", "F1", ws );
ok( oParser.parse() );
strictEqual( oParser.calculate().getValue().toFixed(7) - 0, 1.3333347 );
} );
test( "Test: \"LOGINV\"", function () {
function loginv( x, mue, sigma ) {
......
......@@ -58,7 +58,7 @@
cFormulaFunctionGroup['Statistical'].push(cBINOM_DIST_RANGE,
cF_TEST, cFORECAST_ETS, cFORECAST_ETS_CONFINT, cFORECAST_ETS_SEASONALITY, cFORECAST_ETS_STAT,
cHYPGEOM_DIST, cNEGBINOM_DIST, cNORM_S_DIST,
cNORM_S_INV, cPERMUTATIONA, cPHI);
cPERMUTATIONA, cPHI);
cFormulaFunctionGroup['Financial'] = cFormulaFunctionGroup['Financial'] || [];
cFormulaFunctionGroup['Financial'].push(cPDURATION, cRRI);
cFormulaFunctionGroup['Mathematic'] = cFormulaFunctionGroup['Mathematic'] || [];
......@@ -72,7 +72,7 @@
cFormulaFunctionGroup['NotRealised'].push(cDAYS, cISOWEEKNUM, cBITAND, cBITLSHIFT, cBITOR, cBITRSHIFT, cBITXOR,
cDBCS, cUNICHAR, cUNICODE, cBINOM_DIST_RANGE, cF_TEST, cFORECAST_ETS, cFORECAST_ETS_CONFINT,
cFORECAST_ETS_SEASONALITY, cFORECAST_ETS_STAT, cHYPGEOM_DIST, cNEGBINOM_DIST,
cNORM_S_DIST, cNORM_S_INV, cPERMUTATIONA, cPHI, cPDURATION, cRRI, cAGGREGATE, cMUNIT, cFORMULATEXT, cISFORMULA,
cNORM_S_DIST, cPERMUTATIONA, cPHI, cPDURATION, cRRI, cAGGREGATE, cMUNIT, cFORMULATEXT, cISFORMULA,
cSHEET, cSHEETS);
/**
......@@ -351,18 +351,6 @@
cNORM_S_DIST.prototype = Object.create(cBaseFunction.prototype);
cNORM_S_DIST.prototype.constructor = cNORM_S_DIST;
/**
* @constructor
* @extends {AscCommonExcel.cBaseFunction}
*/
function cNORM_S_INV() {
cBaseFunction.call(this, "NORM.S.INV");
this.isXLFN = true;
}
cNORM_S_INV.prototype = Object.create(cBaseFunction.prototype);
cNORM_S_INV.prototype.constructor = cNORM_S_INV;
/**
* @constructor
* @extends {AscCommonExcel.cBaseFunction}
......
......@@ -68,12 +68,13 @@
cFORECAST_LINEAR, cFREQUENCY, cFTEST, cGAMMA, cGAMMA_DIST, cGAMMADIST, cGAMMA_INV, cGAMMAINV, cGAMMALN,
cGAMMALN_PRECISE, cGAUSS, cGEOMEAN, cGROWTH, cHARMEAN, cHYPGEOMDIST, cINTERCEPT, cKURT, cLARGE, cLINEST,
cLOGEST, cLOGINV, cLOGNORM_DIST, cLOGNORM_INV, cLOGNORMDIST, cMAX, cMAXA, cMEDIAN, cMIN, cMINA, cMODE,
cMODE_MULT, cMODE_SNGL, cNEGBINOMDIST, cNORMDIST, cNORM_DIST, cNORMINV, cNORM_INV, cNORMSDIST, cNORMSINV, cPEARSON, cPERCENTILE,
cPERCENTILE_EXC, cPERCENTILE_INC, cPERCENTRANK, cPERCENTRANK_EXC, cPERCENTRANK_INC, cPERMUT, cPOISSON,
cPOISSON_DIST, cPROB, cQUARTILE, cQUARTILE_EXC, cQUARTILE_INC, cRANK, cRANK_AVG, cRANK_EQ, cRSQ, cSKEW, cSKEW_P,
cSLOPE, cSMALL, cSTANDARDIZE, cSTDEV, cSTDEV_S, cSTDEVA, cSTDEVP, cSTDEV_P, cSTDEVPA, cSTEYX, cTDIST, cT_DIST, cT_DIST_2T,
cT_DIST_RT, cT_INV, cT_INV_2T, cTINV, cTREND, cTRIMMEAN, cTTEST, cT_TEST, cVAR, cVARA, cVARP, cVAR_P, cVAR_S,
cVARPA, cWEIBULL, cWEIBULL_DIST, cZTEST, cZ_TEST);
cMODE_MULT, cMODE_SNGL, cNEGBINOMDIST, cNORMDIST, cNORM_DIST, cNORMINV, cNORM_INV, cNORMSDIST, cNORMSINV,
cNORM_S_INV, cPEARSON, cPERCENTILE, cPERCENTILE_EXC, cPERCENTILE_INC, cPERCENTRANK, cPERCENTRANK_EXC,
cPERCENTRANK_INC, cPERMUT, cPOISSON, cPOISSON_DIST, cPROB, cQUARTILE, cQUARTILE_EXC, cQUARTILE_INC, cRANK,
cRANK_AVG, cRANK_EQ, cRSQ, cSKEW, cSKEW_P, cSLOPE, cSMALL, cSTANDARDIZE, cSTDEV, cSTDEV_S, cSTDEVA, cSTDEVP,
cSTDEV_P, cSTDEVPA, cSTEYX, cTDIST, cT_DIST, cT_DIST_2T, cT_DIST_RT, cT_INV, cT_INV_2T, cTINV, cTREND,
cTRIMMEAN, cTTEST, cT_TEST, cVAR, cVARA, cVARP, cVAR_P, cVAR_S, cVARPA, cWEIBULL, cWEIBULL_DIST, cZTEST,
cZ_TEST);
cFormulaFunctionGroup['NotRealised'] = cFormulaFunctionGroup['NotRealised'] || [];
cFormulaFunctionGroup['NotRealised'].push(cFTEST, cGROWTH, cLINEST, cLOGEST, cTREND);
......@@ -5615,6 +5616,19 @@
return this.value = arg0;
};
/**
* @constructor
* @extends {cNORMSINV}
*/
function cNORM_S_INV() {
cNORMSINV.call(this);
this.name = "NORM.S.INV";
}
cNORM_S_INV.prototype = Object.create(cNORMSINV.prototype);
cNORM_S_INV.prototype.constructor = cNORM_S_INV;
cNORM_S_INV.prototype.isXLFN = true;
/**
* @constructor
* @extends {AscCommonExcel.cBaseFunction}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment