Giter Site home page Giter Site logo

gharib85 / cquadpack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from esss/cquadpack

0.0 1.0 0.0 152 KB

A C port of the QUADPACK software (originally in Fortran) for solving integrals

License: MIT License

C 98.03% CMake 1.32% Batchfile 0.64%

cquadpack's Introduction

CQUADPACK

Build Status

This package includes a complete port of the QUADPACK Fortran codes to C. Unlike ports created by translators, this port reimplements the algorithms to take advantage of C progralm structure and dynamic memory. Every effort has been made to leave the low level code intact, except where some opportunity to convert from unstructured blocks to more structured form was taken.

Some changes to the calling conventions for various routines have also been made. In particular, the low level integrators, such as 'dqk??.c', are treated as functions returning a value. In the original code, these integrators are subroutines passing the result back through a parameter.

QUADPACK is well documented in the publication, ``QUADPACK, A Subroutine Package for Automatic Integration,'' by R. Piessens, et al., Springer-Verlag, 1980.

This port was initially done by C. Bond (http://www.crbond.com/) and this is a repackaging of the initial code with some minor changes.

DEPENDENCIES

The code has no external dependency. It only depends on the standard C library.

INSTALLATION

conda install -c https://conda.anaconda.org/edisongustavo cquadpack

BUILDING

CMake is required.

It is recommended to use out-of-source builds builds. For that, create the build directory and run CMake on it:

mkdir build
cd build
cmake ..

Visual Studio

Open the Visual Studio command prompt and run the above commands. A solution cquadpack.sln will be generated, open it with Visual Studio and compile it.

FILES

The files are distributed among several directories for convenience in identification. For application development, a different directory structure would be necessary. Feel free to move the files according to your requirements.

SOURCE FILES

The complete set of source and header files are in the directory: src/.

If you have access to the QUADPACK documentation, you will be able to match files in this directory to the original FORTRAN files.

TEST PROGRAMS

Some test programs which exercise most of the CQUADPACK routines are included. They are in the directore: test/.

If you plan to use CQUADPACK for more than one application, it would be better to compile all the source files into a library, and just add the library to your project.

MISCELLANEOUS APPLICATIONS

These include a programs to compute elliptic integrals and demonstrate double integrals.

CAVEATS

The author makes no warranty about the correctness of any translation. This is just as well, because there is no guarantee that the original codes were error free in the first place. Every effort has been made to assure that the programs are functional and that they perform as expected.

cquadpack's People

Contributors

michael-hartmann avatar edisongustavo avatar tadeu avatar

Watchers

James Cloos 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.