Coder Social home page Coder Social logo

kiba1215 / coordinateaxischart Goto Github PK

View Code? Open in Web Editor NEW
45.0 4.0 11.0 661 KB

A simple Math coordinate system on Android. 绘制坐标轴 函数图像

License: Apache License 2.0

Java 100.00%
coordinate chart coordinate-systems axischart android-coordiante-system

coordinateaxischart's Issues

关于幂函数的指数不是整数时图像不显示问题

当幂函数的指数不是整数时,图像是出不来的,比如 y = x^2.1 ,这是因为Math.pow(a,b);这个函数不支持 a<0且b不是整数的情况,此种情况会导致 domain error 错误。而程序会生成 x 小于0的点和 x 大于 0的点,当 x 小于0 求 y值时,所得y = NaN,故导致函数点无法绘制,函数图像绘制失败。请知悉。
我的解决办法是 当指数不是整数时,不生成x < 0的点,这样导致函数只有x>0的部分,但不会报错不显示。

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.