/explore
|
You are here |
mina86.com | ||
| | | | |
sintraworks.github.io
Sometimes, using floating point arithmetic (e.g using float or double types) just doesn't cut it. Floating point values cannot represent all values accurately, and if you start adding/subtracting/multiplying/dividing such values it is very likely the inacurracies quickly exacerbate into an unworkable mess. Depending on the domain you're working on, different solutions can be appropriate. E.g, if you're working with currency, you might need a type representing decimal numbers, or, if you're working with musical timelines or scores, especially where tuplets (e.g. triplets) come into the mix, a type accurately representing any fraction may be called for. Here we will look into the latter: a type where each instance represents a fraction. We want to be able to p... |
|
| | | | | ||
| | | | |
kndrck.co
Motivation RSA (Rivest-Shamir-Adleman) is one of the first public-key cryptosystems and is widely used for secure data transmission. In such a cryptosystem, the encryption key is public and is different from the decryption key which is kept secret. If I wanted to comprehend zero knowledge proofs, then understanding the grand-daddy of public-key cryptosystems is a must. Background Maths Exponential Rules 1 $$ \begin{align} \label{eq:exponent_rule} g^{a-b} &= \dfrac{g^a}{g^b} \newline g^{a+b} &= g^a g^b \n... |
|
| | | | | ||
| | | | |
marc-b-reynolds.github.io
A sketch of a fast path filter to avoid explicit underflow checking following an addition or subtraction. |
|
| | | | | ||
| | | | |
hamatti.org
|
|
| | | |||