-
Right now we have a `choose` operator which works on natural numbers, e.g.
```
Disco> 5 choose 2
10
```
However, what this is really doing is counting the elements of a certain set, i.e. the numb…
-
### What happened?
There is no subspace information in a control problem.
Consider a three level transmon
```Julia
η = -0.2
a = annihilate(3)
sys = QuantumSystem(η / 2 * a'*a'*a*a, [(a + a')…
-
Related: #897
Here's a situation I've run into before: given an optional array, return one more than its length if it's defined, and some fallback value (e.g. 0) if it isn't. Currently this can be…
-
Now, not to copy C++ to much, but I'm incredibly lazy, so a quick shortcut to add 1, or subtract 1, would be nice.
`a++` Add 1 to a, or if we wanted to `++a`. Same with `a--`/`--a`.
But to not cop…
-
### Zig Version
0.14.0-dev.66+1fdf13a14
### Steps to Reproduce and Observed Behavior
possibly related to https://github.com/ziglang/zig/issues/4754
create c file with:
```c
#ifndef PACKED
#de…
-
Currently, the boolean data type is not defined by default; you must define it yourself (see examples/all_tree.bend).
At present, if you perform a comparison like `0 == 0`, it returns `1`.
The b…
-
### PyBaMM Version
24.1
### Python Version
3.12
### Describe the bug
Attempting to define a function in ```rhs``` using `````` operators results in the following error
```
return left - rig…
-
I *think* this is a bug:
```coffee
extra.split(/\s+/).filter &
++ [state.start, state.goal]
```
Expected compilation:
```js
extra.split(/\s+/).filter($ => $)
.concat([state.start, state.goal…
-
-
Consider this snippet
```ts
where(eb => eb('first_name', sql`%>>`, 'Jennifer'))
```
This will cause a type error since the operator is assumed to be arithmetic and the output type of the expre…