PARI/GP programming

For learning, teaching, and speeding up, PARI/GP programming, ...
Jan 10, 2020 14:08
@RoddyMacPhee oh hey, sorry, just came here from a recommended meta question don't really have anything to add to the discussion
 

 The Nineteenth Byte

The Nineteenth Byte: General discussion for codegolf.stackexc...
May 23, 2019 18:51
I'm just saying that someone should make some challenge of it
May 23, 2019 18:51
there's many ideas to go off :P
May 23, 2019 18:51
@EriktheOutgolfer no idea
May 23, 2019 17:16
May 23, 2019 17:16
someone make this into a challenge
May 1, 2019 20:57
then set it equal to 0 and solve
May 1, 2019 20:57
wait maybe I can differentiate the variance with respect to c
May 1, 2019 20:49
alright yeah, then continue
May 1, 2019 20:49
ohh
May 1, 2019 20:48
note the ti on the last line
May 1, 2019 20:48
May 1, 2019 20:48
yes
May 1, 2019 20:42
they all sum to t[x] which is not linear (but if we wrap the sum in ti it will obviously sum to x)
May 1, 2019 20:42
to make it easy to debug I wrap the entire sum in a ti
May 1, 2019 20:41
no
May 1, 2019 20:37
they're probabilities
May 1, 2019 20:37
the bumps are only a visualization though
May 1, 2019 20:28
@flawr I am sort of, a linear combination of basis vectors can make any other vector
May 1, 2019 20:28
and I have no idea if it's even close to optimal
May 1, 2019 20:28
it has a small kink
May 1, 2019 20:28
but no mathematical justification
May 1, 2019 20:28
it's definitely workable
May 1, 2019 20:28
this is what I got from manually fitting a curve
May 1, 2019 20:28
May 1, 2019 20:25
meaning I only have to find x
May 1, 2019 20:25
giving me y, z in terms of x
May 1, 2019 20:24
leaving out the constant variance
May 1, 2019 20:24
has been to solve the above system of equations under-determined
May 1, 2019 20:24
my best result so far
May 1, 2019 20:22
I don't know what a basis function is
May 1, 2019 20:20
so we need non-constant variance but I have no idea what/how
May 1, 2019 20:20
and I've tried various (hehe) constant variances but they all are broken
May 1, 2019 20:20
since the solution is unique (3 variables, 3 equations) and it doesn't work we know that we can't have constant 1/4 variance
May 1, 2019 20:18
but the probabilities aren't in [0, 1]
May 1, 2019 20:18
and the average does come to c
May 1, 2019 20:18
the variance is 1/4
May 1, 2019 20:18
yes, the probabilities sum to 1
May 1, 2019 20:17
it's not correct
May 1, 2019 20:17
@flawr unfortunately the result is a total mess
May 1, 2019 20:17
May 1, 2019 20:11
that was the next logical step
May 1, 2019 20:11
May 1, 2019 20:06
and their variances to the y = 1/4 curve
May 1, 2019 20:06
it really is quite magic that these curves perfectly add up to the y = x curve :D
May 1, 2019 20:06
we just have 3 functions in the neighbourhood of any c
May 1, 2019 20:05
because instead of having to solve integration
May 1, 2019 20:05
this way simplifies the problem immensely
May 1, 2019 20:05
and c = 3 has the highest chance of quantizing to 3
May 1, 2019 20:04
but c = 4 has a small chance of quantizing to 3