GithubHelp home page GithubHelp logo

nennigb / findzerosm Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 1.02 MB

A package to compute the zeros of analytic functions

License: GNU General Public License v3.0

MATLAB 100.00%
root-finding waveguide complex-analysis

findzerosm's Introduction

FindZerom

Aim

This package is suitable to compute all the roots of an analytic functions present inside a closed contour without initial guess. There are numerous root finding algorithm like Newton-Raphson method, Muller's method, the Secant method or the Nelder-Mead simplex method. All these techniques have in common that they require initial approximations for the zeros to start the algorithm. The approach used here is to build a polynomial with the same zeros as the original function.

The proposed implementation is based on the method called the Cauchy Integration Method or the Argument Principle Method and allows to compute the number of zeros (including its multiplicity) of a function from contour integral. A short documentation explains quickly the theoretical background, shows the calling sequence and presents some example of applications and validations.

Origin

This program was initially developed for poroelastic silencer applications [Nennig, 2010]

B. Nennig, E. Perrey-Debain, and M. Ben Tahar. A mode matching method for modelling dissipative silencers lined with poroelastic materials and containing mean flow. J. Acoust. Soc. Am. , 12 (6) :3308-3320, 10.1121/1.3693655, 2010.

in order to solved dispersion equation. The algorithm has been already used in other applications fields (see [Delves, 1967;Chen, 2000; Kravanja, 2000] and the references therein). We proposed here a basic numerical implementation in matlab language. Examples of applications in acoustics can be found in my work.

Basic Usage

This command compute the roots of fhandle inside a circle of radius R in the complex plane, K = FindZerosm(R,N,fhandle) Where N is the number of integration points (500 is a good start) and fhandle is the anonymous function of which the root are sought. For instance,

f=@(x)cos(x)*cosh(x)+1;
K = FindZerosm(10,500,f)
plot(K,'.')

Installation

Just download or clone the project. Eventually unzip the file and add the folder to matlab path.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

findzerosm's People

Contributors

nennigb avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

chaogecanfly

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.