GithubHelp home page GithubHelp logo

perazz / fortran-bessels Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 2.0 306 KB

Fortran port of the Bessels.jl repository

License: MIT License

Fortran 100.00%
bessel bessel-function fortran math special-functions

fortran-bessels's Introduction

Combustion researcher, Software Developer and Consultant at WERC

With 15+ years experience working with legendary professor Rolf Reitz on:

  • Accurate, fast combustion models for DI, SI and Multi-Fuel engines
  • The fastest chemical kinetics simulations for CFD
  • Tailored, state-of-the-art CFD with combustion, sprays, turbulence, real-gas/multiphase EoS
  • fast parallel codes with MPI/OpenCL
  • Working on FRESCO, my Combustion Fluid Dynamics code

Help me out speeding up the clean energy transition, get in touch!

Google Scholar profile Linkedin: fperini

fortran-bessels's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fortran-bessels's Issues

Accuracy of bessel functions for larger arguments

I was looking through the code and was curious how

b = cos(ax+xn)
this line held up? I don't know how to exactly test this accuracy ๐Ÿ˜ƒ but I found that this simple summation is prone to some huge cancellation. Especially because the two values vary so much in magnitude.

It's much better to do something like...

s_x, c_x = sincos(x)
s_xn, c_xn = sincos(xn)
  (c_x * c_xn - s_x * s_xn)

because it essentially acts as a range reduction putting the two values at similar magnitude. Therefore, when summed they lose less precision. We are working on a slightly different approach but if Fortran has a good function to give you both sin and cos this could significantly improve the accuracy! It should only cost a few cycles but will be able to provide much better relative tolerances.

add topics

I suggest adding topics such as bessel, bessel-function, special-functions in the About section.

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.