Giter Site home page Giter Site logo

xdsy118019-exam's Introduction

关于项目

21307130331 柳睿洋

  emmm...其实没什么好说的。两个算法按照文档说明实现即可。
  为了提高复用性,给两个算法的函数设计了一个error参数和一个if_need_error_list参数,用来区分这两个函数是否用于问题4的解答。
  如果是,那么函数返回一个每次迭代后的误差列表。如果不是,函数返回计算得到的根。
  关于newton算法,在实现时用到了递归,所以返回的误差列表是一个提前声明的全局变量。

关于使用方法

  运行main函数,根据提示输入即可。
  注意关于问题3各函数的测试,由于在bisection算法的实现里用到了assert,所以上下界输入值不合适时程序会发出异常并终止,并不是bug。

测试案例

xdsy118019-exam's People

Contributors

liuyxpp avatar foxymmd avatar

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.