Homework Statement
I am trying to create a program that will convert big endian to little endian notation and vice versa. I found a way to represent unsigned integers and display their binary value. Can I use this program somehow to accomplish my goals. I am going the right way?
Homework...
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
I want to do 8 + (-2) in binary
Homework Equations
8= 1 0 0 0
2= 0 0 1 0
The Attempt at a Solution
To find the negative of 2 I find the tens complement of it by finding nines complement and +1
7 is the nines complement = 0 1 1 1 and adding 0 0 0 1 = 1 0 0...
Homework Statement
Two stars, S1 and S2, with effective temperature of Te,1=25000 K and Te,2= 2000 K and photospheric radius of R1=Rsun/100 and R2=50 Rsun make a binary system.
If the Star S2 is in circular orbit around the S1 with revolution period of P=180 days (1 day=24 hours), and S1 has a...
Homework Statement
Hey, i don't really understand what they mean when its overflow when u add or subtract binary numbers like
1101
+
1010
Homework Equations
The Attempt at a Solution
I thought the answer is 10111 but they get +7 I know the+ is cause of the 1 in front but...
Why is it that when using 2's complement, the result of arithmetic operations differ by two?
11011001 (-39) +
11100111 (-25) =
11000000 (which is -62 in 2's complement, even though it's supposed to be -64)
00110011 (51) +
11101110 (-16) =
00100001 (33, but it's supposed to be 35)
Application of the Doppler effect and Kepler's 3rd law
Homework Statement
(*This isn't the exact wording from a textbook, just as I had copied it down)
An eclipsing binary star system containing stars A and B in concentric orbits (about their common centre of mass) has it's maximum red- and...
i found the recursive relation which is T(n) = 1 + t(n/2)
after a couple of substitutions i found the pattern which is T(n) = 2i-1 + T(n/ 2i)
i chose i = log2 n and then when i plugged it in i got
T(n) - 2log2(n -1) + T(1)
but doesn't the first part simplify to n-1?
the complexity...
Homework Statement
Suppose n\leq2
Let C be the code consisting of all binary strings of length n in which the sum of the bits is even. Is C and MDS code? is C a cyclic code?
Homework Equations
An MDS code is one where the codewords are separated by a maximum number of bits d. MDS codes obey...
Actually I was studying on 2nd postulate of special relativity. There I saw Ritz's emission hypotheses says for an object moving directly towards (or away from) the observer at v metres per second, this light would then be expected to still be traveling at (c + v) or (c − v) metres.
Now...
Homework Statement
A binary star system consists of a star P and a star Q, of mass 4.0 x 10^10 kg and 2.0 x 10^10 kg respectively, separated 6.3 x 10^9 m apart. Star P and Star Q move in circular orbits with their centers at the center of mass which remains at rest.
Find the position of...
astronomy - conceptual, trigonometric parallax
Homework Statement
To determine a star's trigonometric parallax, we need at least 3 measurements of its position relative to much more distanct objects. Explain why this is true. (What else could change its position on the sky?)
Homework...
Homework Statement
*attached
Homework Equations
The Attempt at a Solution
Let a,b ∈ H. Then (∀x ∈ S)(a*x = x*a) and (∀x ∈ S)(b*x = x*b). It is easy to see, then, that a*b = b*a. Now let c ∈ S. Then (a*b)*c = c*(a*b) by the associativity of *.
Q.E.D.
So, I can see that it works by dividing a number by its base, recording the remainder, and then repeating until the answer is 0 (instead of a fraction, you wind up with an answer of 0 with a remainder). But how do I convert all the steps' answers&remainders into a binary number?
My name is Joe Fiero. Ever since I was a little kid, I loved science, especially science fiction. Sliders, Back to the future, Star Trek. I never had a chance to get a degree in the things I loved the most because I came from a poor family... which has lead me to a path of self education and...
Homework Statement
I'm trying to divide 1010 by 1001
Homework Equations
The Attempt at a Solution
So far all I have is
_1___________
1001 |1010.000000000
1001
------
0001
I know that 1001 divides into 0001 0 times, but I don't know...
Source: http://en.wikipedia.org/wiki/Ternary_numeral_system
The last sentence in the quote from the Wikipedia has recently intrigued me. I understand that the logarithm function returns a value which when used as an exponent to the base n gives the original input value.
Can someone...
I have written a computer program that uses binary search to find the root to f(x) = 0, where f is an arbitrary (user-defined) function.
If the rounding error \leq \epsilon and the truncation error \leq \delta, what is the estimated accuracy of the output?
Would the following reasoning be...
Homework Statement
structure or behavior VHDL code of a 5-bits binary counter with a sync. load signal to preset the counter to a specific initial state. the output of the counter (Q0 to Q4) are connected to a binary decoder that shows the state of the counter.Homework Equations
The Attempt at...
Hi, I'm looking for binary power plant example problems to work out. Does anybody know of any websites or links to books, or books in general which has some?
Currently, I am trying to analyze a binary PP using propane, and for some damn reason the numbers keep blowing up when i get fairly...
Good morning,
I implemented the Binary Insertion Sort algorithm in C++, and now I want to analyse its time complexity. This is the Insertion Sort algorithm, but the linear search technique (which is used for locating the position in which to insert a particular integer) is replaced by a binary...
(I asked this question in the Stack Exchange http://stats.stackexchange.com/questions/13014/how-to-combine-the-results-of-several-binary-tests" , but didn't get anything that was helpful to me.)
I'm a programmer (former EE) working on a medical application. My last stats course was in...
On the website http://stackoverflow.com/questions/504335/what-are-the-pitfalls-in-implementing-binary-search, it states that the Pascal code (note that in Pascal, the array indexing starts with 1)
PROCEDURE BinarySearch (A : anArray,
Size : anArraySize...
Homework Statement
2 stars are separated by a distancce r, one star has mass 2/3M the other has mass 2M (M is a solar mass). The period of revolution is 5 years, calculate r.
Homework Equations
Fg=(GM1M2)/r^2
The Attempt at a Solution
Ok so I know that the binary star...
Hi Folks
Off my usual forum for a wee change, thought I'd post some thought's for discussion on a long held view of mine.
That the universe is based at it's smallest scale on a simple binary on / off switch and that as a fractal, the universe is throwing up the same designs on each scale...
Dataset is given in file "tabl3.txt".
I know it has something to do with Binary response and probably we should use GLM to model it. However, I kind of stuck with it. My problem is that I can do identify which variable is the response in this case.
If I use
\log \frac{p}{1-p}=default =...
Homework Statement
Number of 1 in the binary representation of the expression 162*9+162*7+16*5+3
Homework Equations
The Attempt at a Solution
obviously, anyone can add these numbers up and then convert to binary
but what is the actual procedure for this type of format?
Hello. I have just regestered to tell the world of my amazing theory. I have called it, Binary universe. Albert Einstin said that everything puts a dent in spacetime. If sapce is flat, there is 2 sides witch means 2 universes. One is ours, an there's another one. I call it UB ( Universe B)...
I am curious what the wikipedia page <http://en.wikipedia.org/wiki/Pythagorean_addition> is referring to when it qoutes that symbol " a Little X in a Circle ", It says and I qoute the binary operation a "that symbol" b = sqrt(a^2 + b^2), Pythagoreans Hypotenuse. Much abliged.
Homework Statement
{xn} is an infinite sequence and xi ≠ xj if i ≠j. Let A and B denote all finite subsequences of {xn} and all infinite subsequences of {xn}, respectively.
Show that B ≈ (0,1).
Homework Equations
The Attempt at a Solution
Using binary expansion, given...
Designing 8-bit Binary to BCD Converter
I have to design and implement an 8-bit binary to BCD converter **using only ICs**
I have an algorithm that works just fine in converting an 8-bit binary to BCD that can be sent to three 7-segment displays. It is called the double dabble method. Please...
Hello! I'm struggling with a particular question, and have no idea where to look or seek help at the moment. It's driving me crazy! I have a feel I need to use Kepler's Third Law, but am unsure how to apply it in this situation. Here:
Suppose you observe a binary system containing a...
1) So, does the binary phase always represent the materials 100% on each end? That is to say, if you have lead and antimony, the right side will always represent 100% of one of the two, and the other side will present 100% of the other. If we look in the middle of the diagram, it's 50-50%...
Here's the question.
Starting with an integer a≥2, we write on its left, below it, the number a+1, and on its right, below it, the number a^2, and obtain four numbers, to which we continue the process. We thus obtain a binary tree, whose root is a. Prove that the numbers in every line of the...
This may sound like a stupid question, but binary code seems so "simple", but it's been with us since the 1940's. What'd be wrong with tertiary code, say?
in analysis of close binary stars, it is assumed that their orbits is circular and then by a rotating coordinate system, potential is obtained and then lagrangian points and so on...
Is the orbit of CLOSE binary stars nearly circular in reality or is it assumed circular because otherwise it is...
Homework Statement
Consider the following binary relations on the naturals (non-negative integers). Which ones are reflexive? Symmetric? Anti-symmetric? Transitive? Partial orders?
a) A(x,y) true if and only if y is even
b) B(x,y) true if and only if x < y
c) C(x,y) true if and only...
I'm attempting to write some simulation VHDL code that will be able to write the output of my simulation as a single string of binary values in a .dat file.
So far I've used both the textio and std_logic_textio libraries to write the signals to a .txt file as text. Is there a library I can...
Homework Statement
The following binary in signed 2s complement form. Perform the indicated arithmetic operations and verify the answers. Indicate whether overflow occurs for each computation.
a) 110001 – 010010
b) 001011 + 100110
c) 101110 – 110111
d) 100111 + 111001
Homework Equations
The...
Hi
It is stated that:
"for a visual binary system, the measured trigonometric parallax is 0.3749+/-0.0057 arcsec."
I don't know this angle is parallax of what? I can guess it like this:
0.3749+0.0057 arcsec is the parallax of the whole system when they are at most distance of each other...
Hi
As two stars orbit their mutual center of mass in elliptical orbits, why are their eccentricity the same?
And why is it the same as the one of reduced mass around center of mass?
Thanks
Homework Statement
Consider an unresolved binary star at a distance of 500pc consisting of
an A1V dwarf and a K0III giant star.
compute mb and mv and B-V for this object
we know the mass, luminosty, radius, Mbol , Mv, Te , and B-V for each individual star.
Homework Equations...
consider the binary encoding function that sends (a1,a2,a3) into (a1,a2,a3,a1+a2, a2+a3, a1+a3,a1+a2+a3). First , how can I give a generator matrix of this code
. then how can I provide the parity check matrix , giving n,k and the minimum distance of the code. Finall, how to decode m1=1100010...
Homework Statement
Beginning with the kinetic and potential energies of two objects with masses m1 and m2, show that the total energy of a binary system is given by:
E=\frac{1}{2}\muv2 - G\frac{M\mu}{r}
Homework Equations
The one given
K =\frac{1}{2}mv2
U = G\frac{Mm}{r}
The...
Homework Statement
Hey everybody! here is my question: Translate the following machine code instructions to MIPS assembly. What is the format of each instruction?
1. 0000 0000 0000 1010 0100 1010 1000 0000
2. 0000 0000 0010 0010 0010 0000 0010 0101
Homework Equations
The Attempt at...
Hey Guys! Thank you for checking out my Thread... I am taking a computer assembly class and i have homework due on Wed but i am stuck on a single problem. I have to convert MIPS instructions into binary, I want to learn how to do this because it will be on a test... and i could just go into...
Homework Statement
Determine whether the operation has an identity element.
x*y = 3xy
Homework Equations
e*x = x*e = x, if this holds, e is an identity element
The Attempt at a Solution
My attempt:
x*z = z*x = 3xz, then 3xz = x <=> z = 1/3 => e = 1/3.
But the answer key in the...