-
I use JSON.stringify to store values in the browser's localStorage (strings only). When I use JSON.parse to get them out of localStorage, they're plain objects, so I have to reinstantiate them as BigR…
ghost updated
6 years ago
-
`
Console.WriteLine(BigRational.Pow(BigRational.Parse("2"), BigRational.Parse("1024")).ToString("F5000").Trim('0').Trim('.').Trim(','));
`
output:
1797693134862315907729305190886220010111188962…
-
In the `BigRational#gcd(a,b)` method I would like to implement a GCD which gives the greatest rational number r for which all the `a/r` and `b/r` are integers and which should be used in the polynomia…
axkr updated
8 months ago
-
Would it be possible to parse decimals into rationals? Python has a way to do this to their Fraction, And Julia has a roundabout way to do this.
E.g. `let x: BigRational = "1234.45e67".parse().unwr…
-
Can the result poylnomials be "normalized" from the `approximantOfPade()`, so that the coefficient for `x^0` is `0` or `1`.
* https://en.wikipedia.org/wiki/Pad%C3%A9_approximant#Examples
```java…
-
### Background and motivation
### I want to suggest a novel arbitrary base number type for namespace System.Numerics.
I love C#. I miss a base number type for arbitrary precisission that is real…
-
The following code: https://play.rust-lang.org/?gist=3a06bcc680135c042135ca45984379f7&version=stable
```rust
extern crate num;
use num::One;
use num::rational::BigRational;
fn main() {
…
-
There are existing BigInteger/BigRational libraries. If there is one at parity with the existing Calculator engine, we can investigate replacing the older engine code.
-
Steps to reproduce:
Add to `BigFloat` new constructor that received `BigRational` and raises anyway:
```crystal
struct BigFloat
def initialize(rat : BigRational)
raise "Rat"
LibG…
-
Dividing two `BigDecimal`'s should yield a BigRational, per `feature`. Additionally, division by another integer numeral could be implemented to yield a BigRational.