Convergents to rad(2)

I didn’t find anything too interesting.

I’m pretty sure it’s spelled Convergence, but hey, maybe it’s branding.

Q gets to n=21 before hitting the limit. I guess I could look for a most efficient upgrade path for manual buying.
N=zeros(1,100);
D=zeros(1,100);
Q=zeros(1,100);

N(1)=1;
N(2)=3;

D(1)=1;
D(2)=2;

Q(1)=abs(sqrt(2)-N(1)/D(1))^-1;
Q(2)=abs(sqrt(2)-N(2)/D(2))^-1;

for index=3:100
N(index)=2*N(index-1)+N(index-2);
D(index)=2*D(index-1)+D(index-2);
Q(index)=abs(sqrt(2)-N(index)/D(index))^-1;
end

%some random numbers

c1=25;
c2coeff=4;
n=4;

qdot_base=qdotfunc(c1,c2coeff,n,Q);
qdot_C1=qdotfunc(c1+2,c2coeff,n,Q); %note the +2
qdot_C2=qdotfunc(c1,c2coeff+1,n,Q);
qdot_n=qdotfunc(c1,c2coeff,n+1,Q);

%=================================================
%new file
function [qdot] = qdotfunc(c1, c2coeff, n, Q)

m=n*c2coeff;
c2=2^c2coeff;

qdot=c1*c2*Q(m);

%====================================================

I dunno. Am I missing anything?

Who is where

As of chapter 20 of the Nine.

Random’s in Mordor, imprisoned in Barad Dur. Sauron announced his plan to give Random a Ring, but it hasn’t happened yet. (CH 20)

Fiona’s in Amber, sitting in a garret. She’s just looked into her trumps and seen Random. She believes him dead. (Ch 19)

Llewella’s in Rebma, having just slaim Rog the Serpent. (CH 17)

Bleys is somewhere unknown. (Various)

Tatianna’s in Amber castle, sort of under arrest. She has designs upon Julian. (CH 16)

Julian is in Amber. (CH 16)

Caine’s in an ER in Amber. (CH 16)

Gerard is off in shadow, getting his arm looked at. (Various, most recently 16)

ADM Dracken lies unconscious in a ruined part of Amber, outside the house he once lived in. (CH 15)

Obrecht has just left the same part of Amber. Bleys has spoken of him to Llewella, and she said she’d look after Obrecht if he came to Rebma. (Various)

Vialle is in Amber. (CH 19)

Flora’s in Amber. (various)

Everyone else is unknown, elsewhere, or dead.

I’m not back.