Coder Social home page Coder Social logo

eflib's Introduction

SysRPL implementation of Error function and Q function.

This program is intended for use with HP49/50G calculators.

Build

Need HPTools, then just run make.

Install

The pre-built binary for the library is EFLIB, copy it to the HP calculator the way you usually do, and attach the library.

Usage

There are seven functions of type % --> % provided, they are ERF function, Q function, and their inverse implemented using numerical approximation methods. Internally they are all computed using extended float.

ERF, IERF

Implementation of error function and its inverse using method from Sergei Winitzki's paper.

ERFIV

Implementation of inverse error function using method from Mike Giles' paper.

QNORM, IQNORM

Implementation of Q function and its inverse using ERF and IERF. Note the UPTN function actually gives a more acurrate result for Q function, but the inverse Q function is much faster than computing the inverse of Q using numerical solver, while the accuracy of both methods are approximately the same.

QBEST

A slightly better Q function approximation from [Dao Ngoc Phong et al]. If you ask me the result is still not as good as UPTN.

IQSML

This function from Pingyi Fan's paper gives decent approximation to inverse Q function when the input is small enough, and can compute the inverse when IQNORM gives infinity error.

Reference

[Sergei Winitzki] A handy approximation for the error function and its inverse, February 6, 2008.

[Dao Ngoc Phong, Nguyen Xuan Hoai, R.I. (Bob) McKay] Evolving the Best Known Approximation to the Q Function.

[Mike Giles] Approximating the erfinv function.

[Pingyi Fan] New inequalities of Mill's ratio and Its Application to The Inverse Q-function Approximation

eflib's People

Contributors

ldbeth avatar

Watchers

 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.