首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > Python是一个日晷日晷器套件Cython封装。

Python是一个日晷日晷器套件Cython封装。

  • 资源大小:307.84 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: python cython 一个 套件 封装

资 源 简 介

News Note: An error was discovered in the root handling. This is fixed in the latest version. The wrapper is based on code posten on the cython-dev mailing list by Mr. Jon Olav Vik. Highlights CVODE - Solver for stiff and nonstiff ordinary differential equation IDA - Solver for the solution of differential-algebraic equation (DAE) systems KINSOL - solver for nonlinear algebraic systems based on Newton-Krylov solver technology The CVODE and IDA solvers support root finding and the solver throws an exception on finding a root. There is also an example of implementing the explicit equation in Cython for speed. Bouncing ball example from OpenModelica manual ``` import array import numpy as np from sundials import * class Ball: TINY = 1e-16 def init(self, e = 0.7, g = 9.81): self.e = e self.g = g def f(self, t, y, sw): if sw
VIP VIP
0.179916s