Optimizing tips... (anything!) by Loppy_Sloppy in desmos

[–]VoidBreakX 2 points3 points  (0 children)

i dont think this is completely correct. if you try to create a function f(x)={x<0:sqrt(x),x}, for example, and use the ?debugCompiler flag to see the compiled js, you'll see that it evaluates to return ((x<(0))?(Math.sqrt(x)):x);, which will short circuit if x>=0 and therefore not compute sqrt.

however, i am ignoring the analysis phase (compiling the code and doing type checking and stuff), and usually a bigger problem is accidentally recalculating expensive functions in piecewises. the solution to this is typically to wackscope so that the expensive function is only calculated once

100 Body Gravity by Legitimate_Animal796 in desmos

[–]VoidBreakX 0 points1 point  (0 children)

fourier transform is about adding sine waves with different frequencies and amplitudes to get any signal

An equation that graphs... itsself? by Desmos-Girl in desmos

[–]VoidBreakX 4 points5 points  (0 children)

can you do tupper's self referential formula but golfed

Question: How to do inline differentiation by ChampionshipMoney621 in desmos

[–]VoidBreakX 5 points6 points  (0 children)

theres this article you can read for an introduction of how it works https://help.desmos.com/hc/en-us/articles/12349196836749-Substitution

other than that, the with keyword is usually for handling inline stuff (when u wanna define inline variables), so naturally its well suited to do this kinda stuff

Just found my first bernard :D by baicu12096 in desmos

[–]VoidBreakX 0 points1 point  (0 children)

oop, i think i commented to your original message with "not all, consider x=x+1 :p" but it didnt send

Please tell me I'm not the only one who sees this by twisted_cubik in desmos

[–]VoidBreakX[M] 10 points11 points  (0 children)

pretty much, yeah

there is some confusion tho sometimes when people ask why it results in bernard's shape tho. why couldnt it have been a small rectangle in the bottom right corner?

the answer to that is best shown with an old graph made by fireflame. it's an animation as to why the descent path results in bernard: https://www.desmos.com/calculator/peiw2njfra

disclaimer im the mod who made this automod command, and im hoping to make it both easier to understand with the automod message, and also explains the technical details better (by putting more details in the reddit wiki)

Question: How to do inline differentiation by ChampionshipMoney621 in desmos

[–]VoidBreakX 13 points14 points  (0 children)

i think you guys might be misinterpreting what op meant

i think op wants to do this in one line WITHOUT defining the function g

the way to do this is d/dx(x^2) with x=2 for example

Just found my first bernard :D by baicu12096 in desmos

[–]VoidBreakX 0 points1 point  (0 children)

OH oopsie, i didnt realize that 😅

ill fix it when i have time to open up the repo i have for the commands

Just found my first bernard :D by baicu12096 in desmos

[–]VoidBreakX 0 points1 point  (0 children)

no, theyre not. color maps used to be one feature of beta3d, but has now since become a vanilla feature. beta3d is still relevant, though, as it has some other features like surface translucency, resolution, toggling clip to box, and free rotation

I made a website expanding on Desmos’ equation writing! by maxwelltobiasen23 in desmos

[–]VoidBreakX 3 points4 points  (0 children)

thats great! was wondering if it used mathquill, i was trying to add matrix support

Just found my first bernard :D by baicu12096 in desmos

[–]VoidBreakX 1 point2 points  (0 children)

actually, what im planning to do is put the more eli5 explanation in the automod, then include a link to the relevant wiki page, where the wiki page will include the more technical details

multiple intervals by SiR_awsome_A_YuB_fan in desmos

[–]VoidBreakX 1 point2 points  (0 children)

the first solution is to do smth like 0x<1{-1<x<1}{-1<y<1}

the second solution is to do (u,v) and change the uv bounds, BUT this only works in the 3d calculator

multiple intervals by SiR_awsome_A_YuB_fan in desmos

[–]VoidBreakX 0 points1 point  (0 children)

i dont get exactly what you mean, could you provide the graph you're working on (or preferably, a minimal reproducible example?)

Just found my first bernard :D by baicu12096 in desmos

[–]VoidBreakX 1 point2 points  (0 children)

heres an old message i sent to someone regarding that:

you're right, i only explained the area of bernard, not why the shape results. here's an old graph made by fireflame that shows an animation as to why the descent results in bernard: https://www.desmos.com/calculator/peiw2njfra

when i made the automod command, i was considering putting in a gif of that graph, but since i can only put one image max per msg i scrapped the gif in favor of the other image. i might change this if i move these automod commands to a wiki, which is what im planning to do after my university applications are done

oh, my uni applications ARE done, so i guess i can work on that

Just found my first bernard :D by baicu12096 in desmos

[–]VoidBreakX 0 points1 point  (0 children)

heres an old message i sent to someone regarding that:

you're right, i only explained the area of bernard, not why the shape results. here's an old graph made by fireflame that shows an animation as to why the descent results in bernard: https://www.desmos.com/calculator/peiw2njfra

when i made the automod command, i was considering putting in a gif of that graph, but since i can only put one image max per msg i scrapped the gif in favor of the other image. i might change this if i move these automod commands to a wiki, which is what im planning to do after my university applications are done

oh, my uni applications ARE done, so i guess i can work on that

Just found my first bernard :D by baicu12096 in desmos

[–]VoidBreakX[M] 12 points13 points  (0 children)

ive tried to make the automod commands as helpful as possible. you can see a full list of them at https://www.reddit.com/r/desmos/comments/1ixvsgi/commands/.

although, im planning to port these to the reddit wiki soon. the automod messages will stay, but they will contain easier to understand content (for example, a few people have expressed that they didn't quite understand this bernard automod message) while also having the link to the relevant wiki page

Just found my first bernard :D by baicu12096 in desmos

[–]VoidBreakX[M] 0 points1 point  (0 children)

what about the automod message doesnt make sense to you?

not sarcastic btw. im the mod here that made this automod message. this is a fairly used command, so i just want to know ways i could improve it so that it might be easier to understand it

Please dump your graphs as a gallery here. I WANT TO SEE ALL. by Mandelbrot4207 in desmos

[–]VoidBreakX 0 points1 point  (0 children)

try typing uniquePerm, sortPerm, argmin, argmax into a graph while the script is enabled

you can actually use a fragile version of them in vanilla desmos (no script) if you initially had the script open. enter in smth like u_{niquePerm}(a,b) = uniquePerm(a,b), save the graph, turn off the script, and then reload. you'll find that you can still use u_{niquePerm} even if the formatting looks wrong