« first day (1 day earlier)      last day (115 days later) » 

12:00 AM
yeah true
only a few days into lotm, and im already finding that golfing other ppls desmos answers is almost just as fun as actually making desmos answers :P
 
 
4 hours later…
3:40 AM
i found some fragile functions not even in fireflame's list: desmos.com/calculator/o8bwm6iwyx
some of them I'm not sure what they exactly do, but they look useful, maybe
the problem is they're so fragile that you have to have all the \operatorname and everything
I also found validateRangeLength, but I couldn't get it to work.
    validateRangeLength: u("BuiltIn", "validateRangeLength", {
        returnType: t.Number,
        argumentTypes: [t.ListOfNumber, t.ListOfNumber, t.Number, t.Number],
        tag: "never-broadcast"
    }),
also select, but it takes a ListOfBool, so idk how you would use that
    select: u("BuiltIn", "select", {
        argumentTypes: [t.ListOfAny, t.ListOfBool],
        returnType: function(e) {
            return e[0]
        },
        tag: "never-broadcast"
    }),
    t.validateRangeLength=function(t,r,n,e){for(var a=t[0],o=2;o<t.length;o++){var i=c.asFloat(c.div(c.sub(t[o],a),n));if(!u.approx(i,o,10))return 0}var f=c.asFloat(e);for(o=0;o<r.length-1;o++){i=c.asFloat(c.div(c.sub(r[o],a),n));if(!u.approx(i,f-r.length+o,10))return 0}return!isFinite(f)||f<t.length||f<r.length?0:f}


    t.validateSampleCount=function(t){return t<0||!isFinite(t)?0:t}

    t.select=function(t,r){for(var n=[],e=0;e<t.length;e++)r[e]&&n.push(t[e]);return n}
 
4:36 AM
i have no idea whats going on here, but thats impressive
where did u find all of this??
javascript source code??
idk how to read javascript, so i cant figure out what is happening here
\operatorname seems way too expensive to call tho, maybe not worth it
but on the other hand maybe actually implementing the function could be more expensive
idk what any of these do (cant read javascript at all), so i cant really say much about this
 
 
9 hours later…
2:14 PM
@AidenChow how does that (mathematically) work? is there some logarithm rule i forgot about?
ty btw
ah, i think i figured the math out
if 1 = log_b(b) then we can substitute that for 1, giving log_b(n) + log_b(b)
then using logarithm rules, we can convert that to log_b(nb)
oh, i just saw your explanation right below it, i am blind
 
 
2 hours later…
4:44 PM
@AidenChow yeah
u dont know js?
i knkow it better than any other lang
uve seen fireflame's list, right?
what i found is the same thing that guy found but there's a few more now
im not sure, maybe you dont need the operatorname. lte me test. but you do need the newline before it and the backslashes and s tuff
and i had to put in the \left and \right
because they're so fragile
ok actually u dont need all that, it works fine without it
but u do need the newline
 
anyone know how to draw a sector of a circle with a hollow center?
this is the closest ive got desmos.com/calculator/1s4qiwxofw
 
hollow?
 
the "arms" for this
 
oh
im bad at math lol
 
ive tried a white circle in the middle to overlay it but its still translucent
i have no idea how the biohazard one was done
 
5:07 PM
well i almost got it
just need to figure out the right proportions and then it will be done
trying to figure out how wide the inner circle is supposed to b
 
hey
the inner circle is r
while the blank circle is 1.5r
 
ok
i totally didnt steal some of hte logic from sql
 
?
 
the polygon
i stole code from sql
polygon((6,0),(3,-6),(-3,6),(3,6),(-3,-6),(-6,0),(6,0))
 
why would sql have the code...
 
5:10 PM
the correct points
wait wdym by r
how could the inner circle be the same radius as the whole circule
 
r is the radius of the inner circle
 
and what's that
does it not matter?
 
the whole thing is 5r
are we talking about the same challenge
 
oh ok
that doesnt look right
8.96/2
whoops copied wronhg thing
inner circle is too big
 
x^2+y^2=r^2
you forgot to square the r
 
5:14 PM
ther
e
now i need to golf this down and compile it into one thing
 
well, looks like ive been beaten to the prize lol
time to find another challenge
 
lol
the d=rgb(255,255,255) doesnt count in the byte count, does it? or maybe it does?
at least i can shorten it to c=hsv(0,0,1)
1 more challenge before the +200 bounty for 10 answers
 
5:42 PM
i got it
sadly setting a sector's opacity to 1 still makes it translucent
ill still answer with it
 
6:41 PM
@seggan u can replace x^2 with xx, y^2 with yy and R^2 with RR
actually (1.5R)^2 -> 2.25RR
@Steffan same thing with the exponents
also all the x^2+y^2 inequalities can be combined using a list
oh u use different colors
 
the colors dont really matter
the spec never said anything about them
wait how would you combine them
ah i see
 
for urs, i dont think u can combine, becuz u use white for one of them
maybe u can do it for the r inequalities, lemme check
ye u can
r<f([0,3,6]40,\theta)
replace all three inequalities with ^
 
7:09 PM
wait @Seggan why do u need R=1??
cant u just take it out completely
oh nvm
 
because thats what sets me apart from the other answers
 
didnt read the scalable part
yeah that makes sense i suppose
 
 
4 hours later…
11:26 PM
@Seggan if the color doesnt matter, then u can do rgb(0,99,0) to save a byte
actually u could remove the color declaration and use the default red
or whatever
 
11:42 PM
i meant for the circle and arms
the white has to stay there
 
yes
the circle and arms u dont need the color
 
@Steffan 3 bytes can be saved in ur bangladesh flag answer by doubling the flag size:
r=rgb(244,42,65)
g=rgb(0,106,78)
-9<=x<=11\{yy<36\}
xx+yy<=16
https://www.desmos.com/calculator/govcidcdfu
 

« first day (1 day earlier)      last day (115 days later) »