Precision Casting
For many languages it is possible to use the locale module to format numbers. But there are at least three languages for which the locale.localeconv()['thousands_sep'] is empty: brazilian portuguese - 'pt_br', portuguese - 'pt' and spanish - 'es'. The first function, format_positive_integer()...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): Format number function Download |
Built-in "sum" function, as well as add.reduce functions in Numeric/numarray introduce a large error when summing large arrays of like elements. This script contains a function that makes sums with error less than 1e-15. It doesn't use any additional memory (although it destroys the data...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): More accurate sum Download |
This class readily reproduces textbook examples and provides immediate demonstrations of representation error, loss of precision (subtractive cancellation), and the failure of the distributive, commutative, and associative laws. Beyond textbook work, this class is also useful for exploring the...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (56): Floating Point Simulator Download |
This program (library) is intended for the organization of calculations with the big precision for unsigned numbers. For use this program only one header file di.h (25Kb) is necessary.The program works very quickly. As against other similar programs this program does not use the heap call (new,...
Platforms: Windows, Mac, *nix, C/C++, BSD Solaris
License: Freeware | Download (67): MUNTL Download |
Qalculate! is a modern multi-purpose desktop calculator for GNU/Linux. It is small and simple to use but with much power underneath. Features include customizable functions, units, arbitrary precision, plotting, and a user-friendly interface.
Platforms: *nix
License: Freeware | Size: 1.2 MB | Download (50): Qalculate! Download |
S-Lang is a multi-platform programmer's library designed to allow a developer to create robust multi-platform software.It provides facilities required by interactive applications such as display/screen management, keymaps, keyboard input and so on.Unlike many interpreters, the S-Lang interpreter...
Platforms: C and C plus plus
License: Freeware | Size: 1.52 MB | Download (39): S-Lang Script Download |
Tigra Slider Control - is DHTML component for the websites that adds vertical and horizontal trackbar capability to the HTML forms similarly to the controls widely used in desktop applications. The position of the handler is translated into the value from specified range and placed in existing...
Platforms: JavaScript
License: Freeware | Size: 61.44 KB | Download (52): Tigra Slider Control Download |
This demo consists of a m-file script (fixed_point_atan2_using_cordic.m) and a m-file function (atan2_fixpt.m). The script contains a step-by-step explanation of how a four quadrant arctan can be calculated using a CORDIC (COordinate Rotation DIgital Computer) algorithm. The first part shows the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Fixed-Point ATAN2 using CORDIC Download |
Electrohydraulic servoactuators provide one of the best controllers from the point of view of precision and speed of response. They are used to control wide range of mechanical parameters, such as the displacement, angular displacement, strain, force, and others. They incorporate, mostly, a...
Platforms: Matlab
License: Freeware | Size: 112.64 KB | Download (49): Transient Response of Electrohydraulic Servoactuator Download |
Electrohydraulic servo systems provide one of the best controllers from the point of view of precision and speed of response. They are used to control almost all hydraulic and mechanical parameters, such as the pressure, pressure difference, angular speed, displacement, angular displacement,...
Platforms: Matlab
License: Freeware | Size: 102.4 KB | Download (43): Transient Response of Two-Stage Electrohydraulic Servovalve Download |
This file calculates BER for or a number of SNR values in Rayleigh Channel.Every BER value has been calculated for 100 errors for precision results.I hope script will help students.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (50): BER Curve for BPSK in Rayleigh Channel Download |
G3 = gauss3D(sz_X, sz_Y, sz_Z, a, prec);returns a 3 dimensional matrix being a gaussian bell curve where the width in the (x/y/z)-dimension is proportional to 1/a(1), 1/a(2) and 1/a(3), respectively. "prec" is the data precision.Default is a=[2.5 2.5 2.5] and prec='double'Examples:Cubic-shaped...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (41): Gaussian window in 3 dimensions Download |
This function implements vectorized FFTs on a GPU. The answer is the same as the fft and ifft matlab functions.You need to install the GPUFFTW2.0 library of Naga K. Govindaraju http://gamma.cs.unc.edu/GPUFFTW/ . On Naga's wed site, you can see the system requirements. It works on linux and...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (48): fftGPU Download |
An ADCARRAY object usually contains a memmapfile object, together with a scale and offset to convert the values stored on disc (and pointed to by the memmapfile object) to real world numbers which are returned as double precision. These can also be transformed by a function pointed to by a handle...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): adcarray Download |
The Linux Soft Real-Time Target is a target definition to Real-Time Workshop from Mathworks. The target uses the POSIX real-time clocks to generate periodic signals, to wake the model process at every time step. The process is changed to real-time highest priority defined by the scheduler, and...
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (54): Linux Soft Real-Time Target Download |
It is a hill climbing optimization algorithm for finding the minimum of a fitness function in the real space. The space should be constrained and defined properly. It attempts steps on every dimension and proceeds searching to the dimension and the direction that gives the lowest value of the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (51): Hill climbing optimization Download |
View factor is a MATLAB function that uses the CDIF (contour double integral formula) to calculates view factors between planar surfaces(polygons), no matter what are the shape and the orientation of the two figures.All you need to enter is the coordinates of the vertices that define the outlines...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (49): View Factors Download |
The effect of fixed-point arithmetic in 16-bits PID controller C routineson the closed-loop precision is shown in this Simulink model.Two Simulink blocks that implement single and doubleprecision 16-bits PID C routines are generated with the LCT. The C sourcesare supplied for user modifications...
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (54): 16-bits fixed-point PID implementations in C Download |
This function calculate the performance, based on Bayes theorem, of a clinical test. The input is based on a 2x2 matrix (true positive, false positives; false negative, true negatives).The Outputs are:- Prevalence of disease- Test Sensibility with 95% confidence interval- Test Specificity with...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Clinical Test Performance Download |
The FindCore Toolbox (v. 1.0b)David Snyder and Gaetano Montelione, (C) 2010This Matlab Toolbox implements the FindCore algorithm described in Snyder, D.A.; Montelione, G.T. PROTEINS: Struct. Funct. Bioinformaticsm, 2005, 59: 673-86. Clustering algorithms for identifying core atom sets and for...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Find Core Toolbox, version Download |