Git Product home page Git Product logo

mathfal's Introduction

mathfal

Mathematical Derivative Verification Code of the Math Function and Limit

预览

https://lib.krait.cn/library/mathfal/0.1/demo.html

使用方法

  • 引入 mathfal.js
<script src="https://lib.krait.cn/library/mathfal/0.1/mathfal.js"></script>
  • 进行初始化 new 一个对象 注意 验证机制需要结合自己的页面方案,下面仅对结果进行验证
var mathfal = new mathfal({
        identity:{
            id: "mathfal_container",
            canvasId: "mathfal_canvas"
        }
    });
    document.getElementById("mathfal_button").onclick = function(){
        var mathfalValue = mathfal.validate(document.getElementById("mathfal_input").value);
        if(mathfalValue){
                alert("求导计算正确");
        }else{
                alert("求导计算错误");
        }
    }
  • 在需要处加入,需结合自己的结构进行美化
<div id="mathfal_container"></div>
<input id="mathfal_input" value="" type="text" required/>
<button id="mathfal_button">核对</button>

mathfal's People

Contributors

kraity avatar

Stargazers

 avatar Electronic Soul avatar

Watchers

James Cloos avatar

Forkers

fastbase

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.