math

Bit shifting

November 21, 2020 | math, computer-science

tags Binary calculation Math Computer Science The operators # Operator Meaning >> Arithmetic (signed) right shift operator >>> Logical (unsigned) right shift operator << Left shift operator, meets the needs of logical and arithmetic shifts Left shift << # Integers are stored, in memory, as a series of bits. For example, the number 6 is: ...

Binary calculation

May 31, 2020 | math, cs

tags Math Computer Science Computer Architecture The b before the code blocks mean binary number, to avoid confusion Binary Addition # Possibilities # A OP B \= 1 + 1 10 1 + 0 1 0 + 1 1 0 + 0 0 1 + 1+1 11 Carry is involved whenever we have a result larger than bin 1 ...

Integral Calculus

May 31, 2020 | calculus, math

tags Math These are the two ways we commonly think about definite integrals: they describe an accumulation of a quantity, so the entire definite integral gives us the net change in that quantity.1 Why Integral Calculus # Figure 1 represents 2 graphs of y = cos(x). Let’s say we would like to calculate the area of \( x_1 \) . We could calculate the area by aproximation, for example, Graph B is filled with the area we would like to calculate, so we could divide this area by equal sections of \(\Delta x_n\) from a to b rectangles, then we could calculate the area of these rectangles by \(f(x_i) * \Delta x_n\) where \(f\) is the area of each of the rectangles. ...