In computing, floating-point arithmetic (FP) is arithmetic using formulaic representation of real numbers as an approximation to support a trade-off between range and precision. For this reason, floating-point computation is often used in systems with very small and very large real numbers that require fast processing times. In general, a floating-point number is represented approximately with a fixed number of significant digits (the significand) and scaled using an exponent in some fixed base; the base for the scaling is normally two, ten, or sixteen. A number that can be represented exactly is of the following form:
significand
×
base
exponent
,
{\displaystyle {\text{significand}}\times {\text{base}}^{\text{exponent}},}
where significand is an integer, base is an integer greater than or equal to two, and exponent is also an integer.
For example:
1.2345
=
12345
⏟
significand
×
10
⏟
base
−
4
⏞
exponent
.
{\displaystyle 1.2345=\underbrace {12345} _{\text{significand}}\times \underbrace {10} _{\text{base}}\!\!\!\!\!\!^{\overbrace {-4} ^{\text{exponent}}}.}
The term floating point refers to the fact that a number's radix point (decimal point, or, more commonly in computers, binary point) can "float"; that is, it can be placed anywhere relative to the significant digits of the number. This position is indicated as the exponent component, and thus the floating-point representation can be thought of as a kind of scientific notation.
A floating-point system can be used to represent, with a fixed number of digits, numbers of different orders of magnitude: e.g. the distance between galaxies or the diameter of an atomic nucleus can be expressed with the same unit of length. The result of this dynamic range is that the numbers that can be represented are not uniformly spaced; the difference between two consecutive representable numbers varies with the chosen scale.
Over the years, a variety of floating-point representations have been used in computers. In 1985, the IEEE 754 Standard for Floating-Point Arithmetic was established, and since the 1990s, the most commonly encountered representations are those defined by the IEEE.
The speed of floating-point operations, commonly measured in terms of FLOPS, is an important characteristic of a computer system, especially for applications that involve intensive mathematical calculations.
A floating-point unit (FPU, colloquially a math coprocessor) is a part of a computer system specially designed to carry out operations on floating-point numbers.
Homework Statement
The problem is how to begin converting 111011.0101 into floating point. I actually did begin looking at the first digit number "1" and identify that it is a negative since is one and zero is positive. Then I try working 111011.0101 separately by splitting 111011 for now and...
Homework Statement
A flat, uniform cylinder of lead floats in mercury at 0 degrees Celsius. Will the lead float higher or lower then the mercury temperature is raised?
Homework Equations
None.
The Attempt at a Solution
Since the mercury is heated, then the density will be lower...
Homework Statement
A hollow spherical shell of external diameter of 1 metre and uniform thickness of 0.2m floats in a liquid with half its volume immersed. If the relative density is 1.5 find t 2 decimal places the relative density of the material of the shell. Homework Equations
Buoyancy = Vρg...
Homework Statement
The question is regarding the stability of a large barge.
Overall width=4m
Uniform weight per meter length of M= 6327.19kg/m (This empty weight is uniformly distributed along the length of the barge.
Center of gravity of the empty barge is at position G, 2m above the flat...
Homework Statement
So this should probably be easy, but for some reason I just can't seem to understand matlab, AT ALL. Anywho,
Consider a normalized floating point number system with b=2 p=3 L=-2 and U=2 , plot all the numbers in this system in a horizontal line, and observe... lalala...
I wasn't quite sure where to ask this. If you've looked closely at the wall, you'll have noticed particles in the air that kinda swirl like static. So usually, it's pretty uniform, but I got a fluorescent bulbs today, and the air particles that usually just scramble about, look like they are...
Homework Statement
Convert 80/9 to single-precision floating-point.
Homework Equations
The Attempt at a Solution
Right, I don't understand this at all but I'm trying to follow my notes, not very successfully..
80/9 is positive so the sign bit is 0.
Exponent is adjusted so...
so i found this program MATLAB on the computers at uni. I've been messing around with it. right now I am learning a bit about floating point systems and stuff and i thought it would be cool to write up a function that finds the smallest and largest numbers but turns out its harder than i first...
Two pieces of maths software that I have handle these floating point "special values" differently. One returns +inf and the other returns nan. (For the calculation of +inf - nan).
I can see some logic to both of those answers. I guess in first case it is following a rule that +inf - (anything...
So if I had a canoe floating in the water on Earth it would sink let's say 4 inches down. Now I take that same canoe with the same mass and put it in a lake on the moon, suppose the moon had a lake . Wouldn't the canoe also sink 4 inches down on the moon . Assuming the canoe had the same mass...
fly floating in a car? :)
Hi
Last day we were arguing with my colleagues what will happen with a fly flying in a car when the car suddenly stops :)
Will it go forwards (or backwards when the car is accelerating)?
Or will it stay stationary?
Suppose the following:
- the car can stop (and...
Homework Statement
Consider the following two equations:
x^2 + y^2 = 42
x + 3y + 2y^2 = 6
Define a symbolic equation for each, and solve it by using MATLAB's symbolic capability. Could you solve these equations by using matrices? Try this problem twice, once using only integers in...
Is the following, ignoring that weight has been used as a force, correct? (excerpt from blog at http://floathaven.com/2011/07/the-solution-to-rising-waters-wednesday-blog/" )
Homework Statement
A sphere is floating in water. It is pushed just under the water level and released. I'm asked to write the equation of motion for the sphere, not assuming small oscillations.
Is it just:
my''=\rho V g - mg
?
Or do I have to include that the buoyant force is changing...
Time period of oscillation of a pole floating...
Homework Statement
A pole is floating in a liquid with 80cm of its length immersed. It is pushed down a certain distance and released. What is its time period of vertical oscillation?
The Attempt at a Solution
I think the information...
Consider a cylindrical glass containing a column of foam. How do the characteristics (e.g. size, geometry, surface width, air pressure, etc.) of the bubbles near the top differ from those near the bottom?
I am doing experiment about escaping powder. In this experiment I am immersing hot wire into the water and investigating the motion of floating particles. What is the importance of thickness of wire? And what do you think about other parameters?
Hello all. My task here was to have an array of floating point numbers, find the largest in the array, and store it back into the array. The first code shows a properly working integer interpretation of the task, and the second shows my interpretation of the floating point. I simply tried to...
Just totally confused which value to use to get the area moments of inertia with this question
The ship was initially looks like this the mass of the ship is 5000 tonnes two heavy cargocontainers each of mass 73,370 Kg each
assume that the ship has a rectangular waterline area, with length...
Homework Statement
A block of wood has a mass of 3.84 kg and a density of 598 kg/m3. It is to be loaded with lead so that it will float in water with 0.89 of its volume immersed. The density of lead is 1.13 104 kg/m3.
a)What mass of lead is needed if the lead is on top of the wood?
b)What...
Need Simple Clarification: Tension and acceleration, one floating block, one sliding
Homework Statement
gravity is 9.81m/s2
m1 = 2.62kg
m2 = 7.62kg
[PLAIN]http://uploadpad.com/files/Screen_shot_2011-02-27_at_5.40.01_PM.png
Assume the cord to be light (massless and weightless) and...
I was wondering, within a static train, for a fly which is currently floating in the air and not moving at all, what will happen if :
1) The train start to accelerate and moving forward. Will the floating fly experience inertia and being pushed backward? Does the inertia caused by air...
Hello everyone
Thanks for viewing this topic for me... my question is when I tried to check user inputs a valid age it works only if a number is entered. If by mistake user inputs a character value (e.g. any character a to z or any symbol) this loop runs infinite
How can I check if a...
A block of wood with a density that is 750 kg/m3 is floating in a tank of water. How much of the wood is above the surface of the water
D=M/V
I've been trying for hours to try to figure this one out. The only info I'm given the the density of a block of wood in the water at...
Homework Statement
In many locations, such as Lake Washington in Seattle, floating bridges are preferable to conventional bridges. Such a bridge can be constructed out of concrete pontoons, which are essentially concrete boxes filled with air, Styrofoam, or another extremely low-density...
Homework Statement
The problem consists of a ball almost completely submerged. The exact question is:
"An object with density ρO and mass m is floating in a pool of fluid with density ρF. Derive an expression for the volume of the object that is above the fluid."
Homework Equations...
Homework Statement
A 8 cm × 8 cm × 8 cm wood block with a density of 653.49 kg/m3 floats in water.
What is the distance from the top of the block to the water if the water is fresh?
Homework Equations
The Attempt at a Solution
weight= density*volume*g
weight=653.49*(512)*9.8...
Hello,
I am trying to fully wrap my head around signal shielding so as to take it from the trial-and-error domain to the theoretical design domain. The problem is that I am stuck on one of the very basic and fundamental principles of shielding - the floating conductor as an electrostatic...
Homework Statement
A hollow sphere of gold floats in a large lake of oil of dielectric constant \kappa=3.3. The sphere is half immersed in the oil, and has a total charge of 2.2*10^-6 Coulombs. What fraction of this electric charge on the sphere is above the oil surface?
Homework...
Fluid Mechanics -- Floating Bodies
Homework Statement
A solid block with specific gravity 0.9 floats so that 75% of the body is submerged in water and the other 25% sits in an unknown fluid layered above the water. Find the specific gravity of the unknown fluid.
density of water = 1000...
(apologies for the formatting, mixing LaTeX and regular text looks ugly, but I don't know how to do it otherwise)
Homework Statement
This is problem 3-7 from Thornton and Marion's Classical Dynamics.
A body of uniform cross-sectional area A = 1 cm2 and of mass density \rho=0.8 g/cm3 floats...
Here is an experiment I found on youtube:
Here is how I understand the setup:
- A bucket with water spins on a turntable
- The bucket is closed, so the air inside spins with the bucket & water : All three are at rest in the rotating frame (not 100% sure about this, but the ball moves slow...
so I make a vector:
V3 = [15.05:.05:15.15];
V3c = [14.75:.05:15.15];
find(V3c == Vc(2))
and I get nothing (no matches)
apparently, when MATLAB constructed V3, it did so such that:
V3(2) == 15.10000000000001
and
V3c(8) == 15.10000000000000
what's the deal?
My cheap way around this is:
V3 =...
This is bugging me and maybe someon can help me find the obvious mistake:
I want to calculate the minimum power needed to keep a mass of 1 kg floating in mid air.
The naive approach is this:
The mass falls 5 meters in one second so to get to the original position I have to invest an...
How to use a function f[x,y,z] to describe the shape of water surface when a tiny object is floating on it based on surface tension ONLY?
Assume there is a tiny object floating on the water surface because of the surface tension, then the water surface will be deformed obviously. So how can...
I came across this online the other day:
I came up with a formula for calculating the mass supported by such a sphere of air (as a function of temperature, height and radius), and just wanted to see if my math checks out.
http://designbyninjas.com/calculation.jpg
Also, since the air...
Homework Statement
Consider a spherical mountain of radius a, mass M, floating in equililbrium in the earth, and whose density is half that of the earth. Assume that a is much less than the Earth's radius, so that the Earth's surface can be regarded as flat in the neighborhood of the...
Aspect ratio of cylinder floating in water?
Hi,
Basically the question is:
What is the aspect ratio (h/d) for a cylinder of specific gravity 0.65 above which it will float vertically? (Note use GM = I/V - BG)
So i found a solution that is simliar and can help solve the problem. (please...
I'm really confused about how we float in space. What is it that keeps us from falling through it?
I've heard that astronauts in space are actually always falling, but move so fast that the Earth curves away from them.
If that's the case, what would happen if we were in space but extremely...
Hi,
First of all, I posted a similar question in [1] but I think it is the wrong forum and wrong question (maybe the reason why I get no answer...).
I have to solve this (I think easy?) exercise:
http://img705.imageshack.us/img705/8241/floatingmosfet.png
I think (3.1) is easy and I solved...
So, like quite a few others on this forum, I am building a trebuchet for a school physics class.
While I am really enthusiastic about the project (who doesn't love giant medieval war machines?), I may be a little bit over my head in the calculations.
So I hope I can give enough information...
1. Convert -45 and 3.54625 32-bit ( single precision) to floating point representation.
I know how to convert positive and even decimal numbers, but I don't know how to do these. Is there somebody who knows? Help would be appreciated.
Hello.
What avoid us to insert our hands on a wall for example? i think its the electron force of each atoms right?
so is it possible to construct a matrix of electrons, that will make a thin layer of electrons where a think paper can float ?
Maybe an electron emission or something...
Homework Statement
Really need help with this one. I don't quite know where to begin.
If a ship loaded when floating in fresh water to a weight of 50,000 metric tons were floated in sea water of specific gravity 1.03, how much additional weight could she take on board without being...
i need to express 358 in binary single floating point format using excess 4 notation...i can do it easily using the 32-bit standard representation with the excess 127 exponent. i know that 358 is 101100110 therefore i assume floating point would be 1.01100110 with an exponent of 8. i know excess...
Help!
I know almost nothing about Fortran but need to use a program by others. I encountered a problem in determining the "Single-Precision Machine Constants" for my desktop computer (intel pentium dual core 5200 2mb l2 2.5ghz 800 fsb with Window Vista). Please take a look at following part or...