Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NORMDIST can not work. #62

Open
Evansy opened this issue Jun 29, 2018 · 0 comments
Open

NORMDIST can not work. #62

Evansy opened this issue Jun 29, 2018 · 0 comments

Comments

@Evansy
Copy link

Evansy commented Jun 29, 2018

i write a demo by README sample.

<!-- Numeric -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/numeric/1.2.6/numeric.min.js"></script>
<!-- Numeral.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/numeral.js/1.4.5/numeral.min.js"></script>
<!-- jStat -->
<script src="https://cdn.jsdelivr.net/jstat/latest/jstat.min.js"></script>

<!-- Finally add formula.js -->
<script src="local-formula-path/formula.js"></script>

<script>
    
        window.onload = function()
        {
            formulajs.NORMDIST(21.2366,formulajs.AVERAGE(22.3016,21.2366), formulajs.STDEV(22.3016,21.2366),1);
        }
    </script>

but throw an exception

Uncaught TypeError: Cannot read property 'normal' of undefined
    at Object.exports.NORM.DIST [as NORMDIST] (formula.js:6481)
    at window.onload (excel.html:25)

it seems to the exception because jstat..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant