Verilog HDL: Magnitude
For a vector (a,b), the magnitude representation is the following:
A common approach to implementing these arithmetic functions is to use the Coordinate Rotation Digital Computer (CORDIC) algorithm. The CORDIC algorithm calculates the trigonometric functions of sine, cosine, magnitude, and phase using an iterative process. It is made up of a series of micro-rotations of the vector by a set of predetermined constants, which are powers of two. Using binary arithmetic, this algorithm essentially replaces multipliers with shift and add operations. In a Stratix™ device, it is possible to calculate some of these arithmetic functions directly, without having to implement the CORDIC algorithm.
http://w3eval.calcsharp.net/
W3Eval is Java applet that evaluates mathematical expressions. It uses different approach from conventional calculator, which is more natural to the way people calculate.
This program compress and recostruct using wavelets. We can select level of decomposition(here maximum 4 levels are given) of images using selected wavelet.
For eg:-wavelets can be haar, db1, db2,dmey...............
Decomposition can be viewed in figure.
(Please note that select 256X256 image for better result.)
Then compression can performed,
PERFL2 give compression score.
Then reconstruction can be performed.
Each decompsition we can choose different threshold values.
For each threshold value we can calculate mse,psnr,pq(picture quality),
bit ratio etc. To get pq install pqs function .
this a program to show your current credits for add or drop subjects. During university, students need to register what subjects they want to study in a semester. this program show and help to calculate the credits.
//
// Histogram Sample
// This sample shows how to use the Sample Grabber filter for video image processing.
// Conceptual background:
// A histogram is just a frequency count of every pixel value in the image.
// There are various well-known mathematical operations that you can perform on an image
// using histograms, to enhance the image, etc.
// Histogram stretch (aka automatic gain control):
// Stretches the image histogram to fill the entire range of values. This is a "point operation,"
// meaning each pixel is scaled to a new value, without examining the neighboring pixels. The
// histogram stretch does not actually require you to calculate the full histogram. The scaling factor
// is calculated from the minimum and maximum values in the image.
Design and test a category called Rectangle rectangular, rectangular attribute to the lower left corner of the upper-right corner and the coordinates of two points, to calculate the size of rectangular
a Java program that reads in the following values from the standard input device (i.e.
Keyboard) and writes its result on the standard output device (i.e. Console/Monitor):
Inputs:
A: the loan amount in dollars and cents (e.g. 150000.00).
r: the net annual interest rate, expressed as an integer (e.g. 10 which means 10%)
Y: the number of whole remaining years (for repayment)
M: the number of remaining months
Output:
The program should calculate and output the amount of monthly repayments in dollars and cents as
single value (e.g. $840.55)
SuperLU is a general purpose library for the direct solution of large, sparse, nonsymmetric systems of linear equations on high performance machines. The library is written in C and is callable from either C or Fortran. The library routines will perform an LU decomposition with partial pivoting and triangular system solves through forward and back substitution. The LU factorization routines can handle non-square matrices but the triangular solves are performed only for square matrices. The matrix columns may be preordered (before factorization) either through library or user supplied routines. This preordering for sparsity is completely separate from the factorization. Working precision iterative refinement subroutines are provided for improved backward stability. Routines are also provided to equilibrate the system, estimate the condition number, calculate the relative backward error, and estimate error bounds for the refined solutions.