odeintw | odeintw provides a wrapper of scipy.integrate.odeint | Build Tool library

 by   WarrenWeckesser Python Version: 1.0.2 License: BSD-3-Clause

kandi X-RAY | odeintw Summary

kandi X-RAY | odeintw Summary

odeintw is a Python library typically used in Utilities, Build Tool, Jupyter applications. odeintw has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install odeintw' or download it from GitHub, PyPI.

odeintw provides a wrapper of scipy.integrate.odeint that allows it to handle complex and matrix differential equations. That is, it can solve equations of the form. where t is real and Z is a real or complex array. Since odeintw is just a wrapper of scipy.integrate.odeint, it requires scipy to be installed. odeintw is available on PyPI:
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              odeintw has a low active ecosystem.
              It has 26 star(s) with 9 fork(s). There are 4 watchers for this library.
              There were 1 major release(s) in the last 6 months.
              There are 2 open issues and 5 have been closed. On average issues are closed in 224 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of odeintw is 1.0.2

            kandi-Quality Quality

              odeintw has 0 bugs and 8 code smells.

            kandi-Security Security

              odeintw has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              odeintw code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              odeintw is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              odeintw releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              It has 423 lines of code, 46 functions and 8 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed odeintw and discovered the below as its top functions. This is intended to give you an instant insight into odeintw implemented functionality, and help decide if they suit your requirements.
            • Wrapper around odeintW
            • Convert Jacobian to real representation
            • Transforms a banded adjacency matrix
            • Checks for Odeintw arguments
            • Convert a complex128 array to a float64 view
            • Calculate the dot product of y
            • Returns the OINTW version number
            • R Compute the z - value of the covariance matrix
            Get all kandi verified functions for this library.

            odeintw Key Features

            No Key Features are available at this moment for odeintw.

            odeintw Examples and Code Snippets

            mamba fails to create env
            Pythondot img1Lines of Code : 24dot img1License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            name: nbdev
            channels:
              - fastai
              - defaults
              - conda-forge
            dependencies:
              - _r-mutex
              - _tflow_select
              - absl-py
              - alabaster
            
            name: nbdev
            channels:
              - fastai
              - defaults
              - conda-forge
            dependencies:
              - p
            Solve non-linear non homogeneous differential equation with python (Duffing oscillator)
            Pythondot img2Lines of Code : 33dot img2License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            x'' + 2*c*x' + x = F*cos(W*t)
            
            x(t)=A*cos(W*t)+B*sin(W*t)+exp(-c*t)*(C*cos(w*t)+D*sin(w*t))
            
            w^2=1-c^2
            
              -W^2*(A*cos(W*t)+B*sin(W*t))
            +2*c*W*(B*cos(W*t)-A*sin(W*t))
            +     (A*cos(W*t)+B*sin(W
            odeint for matrices
            Pythondot img3Lines of Code : 19dot img3License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            from odeintw import odeintw
            import numpy as np
            
            Y0_test=np.array([[0,1],[0,1]])
            tmin, tmax, tstep = (0., 200., 1)
            t_test=np.arange(tmin, tmax, tstep) #time vector
            
            dydt_testm=np.array([[0.,1.],[2.,3.]])
            
            def dydt_test(y,t):
                return dydt

            Community Discussions

            QUESTION

            mamba fails to create env
            Asked 2021-Aug-04 at 05:11

            I had just installed Anaconda from anaconda.com. The installation proceeded smoothly. After that, I was trying to create a new environment from this environment.yml file. (nbdev.yml)

            ...

            ANSWER

            Answered 2021-Aug-04 at 05:11

            QUESTION

            What is the theory behind the odeintw package for complex matrix differential equations?
            Asked 2021-Apr-03 at 14:32

            In most of the below answers for complex matrix differential equations, the odeintw package has been suggested. https://stackoverflow.com/a/45970853/7952027

            https://stackoverflow.com/a/26320130/7952027

            https://stackoverflow.com/a/26747232/7952027

            https://stackoverflow.com/a/26582411/7952027

            I want to know the theory behind the manipulations done in the code of odeintw. Like why one has to build that banded jacobian, the idea behind the functions _complex_to_real_jac, _transform_banded_jac, etc.

            ...

            ANSWER

            Answered 2021-Apr-03 at 14:32

            The answer is in the comments.

            A complex matrix space is a real vector space, so a complex matrix can be represented by an array of real numbers preserving this linear structure. All odeintw has to do is to wrap odeint or better the function given to it with this basis transformation, forward and backward.

            Now if you want to speed up the computation by providing the Jacobian, it also needs to be translated into the real form. In the method of lines as example you get banded Jacobians, the translation has to keep that property for efficiency reasons.

            M-o-L is a common method in solving PDE of the heat or wave equation type. Essentially, it discretizes the space dimension(s) while leaving the time dimension continuous, resulting in a large-dimensional ODE system in time direction. The resulting Jacobians only are non-zero at nearest-neighbor interactions, thus very sparse, and have a banded structure if the discretization is via a regular grid.

            The nontrivial part arises when you want to specify the Jacobian via the Dfun argument. The complex Jacobian requires that the right-hand side of the equation be complex differentiable (i.e. holomorphic). For example, the function f(z) = z* (the complex conjugate) is not complex differentiable, so you can't specify a complex Jacobian for the equation dz/dt = z*. You would have to rewrite it as a system of real equations. (This example is in the docstring of odeintw.)

            If the right-hand side is complex differentiable, then you can give a complex Jacobian via Dfun.

            Source https://stackoverflow.com/questions/65880726

            QUESTION

            Solve non-linear non homogeneous differential equation with python (Duffing oscillator)
            Asked 2021-Jan-24 at 21:01

            I try to solve the Duffing equation using odeint:

            ...

            ANSWER

            Answered 2021-Jan-24 at 21:01

            Inserting the constants, the equation becomes

            Source https://stackoverflow.com/questions/65873525

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install odeintw

            You can install using 'pip install odeintw' or download it from GitHub, PyPI.
            You can use odeintw like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install odeintw

          • CLONE
          • HTTPS

            https://github.com/WarrenWeckesser/odeintw.git

          • CLI

            gh repo clone WarrenWeckesser/odeintw

          • sshUrl

            git@github.com:WarrenWeckesser/odeintw.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Build Tool Libraries

            Python-100-Days

            by jackfrued

            webpack

            by webpack

            parcel

            by parcel-bundler

            esbuild

            by evanw

            composer

            by composer

            Try Top Libraries by WarrenWeckesser

            wavio

            by WarrenWeckesserPython

            numpngw

            by WarrenWeckesserPython

            eyediagram

            by WarrenWeckesserPython

            ufunclab

            by WarrenWeckesserPython

            las

            by WarrenWeckesserPython