-
It is annoying that
```julia
@variables x
substitute(1//2 * cos(x), x => 0)
```
gives `0.5` and not `1//2`.
The reason is natural: `cos(0)` evaluates to `1.0` (not `1`), giving `(1//2) * 1.0`,…
-
Rationals do not behave well inside `CuArray`s.
Not sure there's much to do about this, except implement a simpler Rational type:
```jl
julia> v = CuArray([1//3])
1-element CuArray{Rational{Int64}…
-
Hello,
it seems that `Sort.sortOf` sometimes returns `Integer`, even when the term should have type `Rational`. Here are a few examples I've found:
```
import ap.SimpleAPI
import ap.parameters.Glo…
-
Below is rosetta code.
When a Rational is a whole number like Rational(a, 1) it prints as "a" not "a/1" as it should.
All rational values should be displayed as rational fractions.
```
require "bi…
-
I am missing a design rational for this proposal in the same vein as the design rational documents for the Wasm specification that can be found here: https://webassembly.org/docs/rationale/
One of …
-
There seems to be an issue with rationals as rhythm values when trying to write cmn, lilypond or xml data. Here is a minimal example that produces a weird score:
```
(let* ((working-title
(make-…
-
Does K have a built-in data type for rationals like Maude's `Rat`?
-
### 🐛 Describe the bug
In an early version of https://github.com/pytorch/pytorch/pull/126905 I attempted to add asserts to our sympy functions. Specifically, for sympy functions that expected to rece…
-
* We need to define a field for both this and #12
* Every rational number is _uniquely_ `n / (S k)` with `n` an integer and `k` a natural number such that `gcd(n, Sk) = 1`, allowing the definition o…
-
We had a brief discussion about adding a requirement for rationals for WebAssembly proposals.
You can read more about the existing discussion here:
https://github.com/WebAssembly/reference-types/i…