closed form of modulus function
From: Alex Hunsley (lard_at_tardis.ed.ac.molar.uk)
Date: 02/10/05
- Next message: jstevh_at_msn.com: "Re: New way to factor? Yes!"
- Previous message: synodinos_at_gmail.com: "Calculate matrix determinant with variables on Palm Tungsten"
- Next in thread: Alex Hunsley: "Re: closed form of modulus function"
- Reply: Alex Hunsley: "Re: closed form of modulus function"
- Reply: Mitch Harris: "Re: closed form of modulus function"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 10 Feb 2005 11:39:27 GMT
The modulus function, which gives the 'magnitude' of a number (in effect
removes a negative sign if one exists), can be expressed in closed form
as either sqrt(x^2) or (sqrt(x))^2. Is either of these forms preferable?
In practical terms, I think the former is the best, as it doesn't
involve the possibility of imaginary numbers coming up during the
calculation, which could cause an algorithm/computer program to object....
alex
- Next message: jstevh_at_msn.com: "Re: New way to factor? Yes!"
- Previous message: synodinos_at_gmail.com: "Calculate matrix determinant with variables on Palm Tungsten"
- Next in thread: Alex Hunsley: "Re: closed form of modulus function"
- Reply: Alex Hunsley: "Re: closed form of modulus function"
- Reply: Mitch Harris: "Re: closed form of modulus function"
- Messages sorted by: [ date ] [ thread ]