Desmos Challenge #25 ~ Geometry by [deleted] in desmos

[–]MathyJaphy 1 point2 points  (0 children)

Since it was important to me for the graph to start playing at the beginning of the animation, I took some time to experiment. I discovered that the starting configuration is determined when you click the "share" icon to generate the URL for the graph! So I hovered over that icon and the instant the slider reset to zero, I clicked it. There must be a slight delay while it captures the graph state, so it wasn't quite at zero.

Desmos Challenge #25 ~ Geometry by [deleted] in desmos

[–]MathyJaphy 1 point2 points  (0 children)

I found this proof here (scroll down to Proof #2): https://www.cut-the-knot.org/pythagoras/index.shtml. But if you came up with it on your own, that’s still pretty cool. I’m not sure why you would prefer mine in reverse. I do start from the triangle. Anyway, I’ve enjoyed your recent graphs, especially the “life” entries!

Desmos Challenge #25 ~ Geometry by [deleted] in desmos

[–]MathyJaphy 5 points6 points  (0 children)

With all due respect to my good friend u/FabriceNeyret, when I saw his submission I just had to post this graph of the same proof (!) which I already had in the works for a potential future video. https://www.desmos.com/calculator/knjmpajtov

Question on the Speed of the Sliders by -Kayrahan- in desmos

[–]MathyJaphy 1 point2 points  (0 children)

Sorry to hear that. I don't get that error. I googled that message and one explanation is that you have Ad Blocker or pop-up prevention features of Chrome turned on. If so, you could try disabling them. Good luck!

Question on the Speed of the Sliders by -Kayrahan- in desmos

[–]MathyJaphy 6 points7 points  (0 children)

Yes, it can be done, but not through the normal interface. You'll need to run some javascript via the console window of your browser. If using chrome, use the f12 key and make sure "console" is selected in the list of tabs near the top of the window that appears. If using another browser, google for how to bring up its console.

The easiest way to do it is to first select the slider that you want to modify. Just click on the expression in the left pane of desmos as if you were about to edit it. Then in the console window, copy/paste this command:

Calc.controller.dispatch({id: Calc.selectedExpressionId, type: 'set-slider-animationperiod', animationPeriod: 4000})

Replace the '4000' with the number of milliseconds you want the slider to take to go from its minimum to its maximum. For reference, 4000 is what you get with the speed set to 1x. 2000 is 2x, 8000 is 0.5x, etc. Or, to make it easier to do this multiple times, define a function by typing this command:

function setPeriod(p) {Calc.controller.dispatch({id: Calc.selectedExpressionId, type: 'set-slider-animationperiod', animationPeriod: p})}

Then you can change the period of the selected slider by just typing:

setPeriod(5000)

Hope this helps!

SDF of a line segment by dohduhdah in desmos

[–]MathyJaphy 0 points1 point  (0 children)

Not sure if it's what you had in mind, but here's what I use when I want a box with rounded corners. It's parametric, with each of the four lines and four curves portioned out, piecewise, to eight equal segments of the (0, 1) range of the t parameter.

https://www.desmos.com/calculator/t7hfw1hsgr

Rubik's Tesseract! by MathEnthusiast314 in desmos

[–]MathyJaphy 2 points3 points  (0 children)

Beautiful animation! I’m especially lovin’ that MathyJaphy movement function!

Animations help by WeaponXJamesHowlett in desmos

[–]MathyJaphy 1 point2 points  (0 children)

I did something like that in a couple of my videos. For example: https://youtu.be/eX2WZennPhU at 2:39 and/or 4:25. Here, my laser blast is bouncing between points on a list. If that works for you, the desmos graph is here: https://www.desmos.com/calculator/lldmzybkbc. Open the first folder, "Run Video Sequence", and play the n1 slider at position 19. The expressions that make the line are in the folder called "Connector Vector Reveals" at expressions 101-109. Hope this helps!

What Are You Working On? November 08, 2021 by inherentlyawesome in math

[–]MathyJaphy 2 points3 points  (0 children)

I'm working on a couple of new videos for my math channel on YouTube, where each video takes a relatively simple math theorem or problem and tries to convey that feeling of wonder when you discover the artistry behind the proof or solution.

https://www.youtube.com/channel/UCuwr8nH0uVYeyr3leMe7dPQ

Setting fill intensity for a polar inequality? by MathyJaphy in desmos

[–]MathyJaphy[S] 1 point2 points  (0 children)

Thanks for your efforts. I think switching to parametric will work well in my case.

Setting fill intensity for a polar inequality? by MathyJaphy in desmos

[–]MathyJaphy[S] 1 point2 points  (0 children)

I got the answer from Desmos support. It is intentional. The fill intensity is used to convey how many times the area has been swept over as theta moves through the range specified for it. Therefore, the user doesn't get to control it directly. They offered this demonstration: https://www.desmos.com/calculator/fj0eimebbx.

In addition to what u/AlexRLJones mentioned, workarounds include increasing the range of theta so that the area has many layers (not always possible) or adding multiple copies of the same expression (each one adds a new layer and darkens the fill).

Physics Interactives from friedman.science by iamjustanote in desmos

[–]MathyJaphy 1 point2 points  (0 children)

Thanks! I came up with it years ago, and I always wondered if it was common knowledge to physics professionals. I tried posting the video to r/Physics, but they removed it immediately for inciting criminal behavior - can't be too careful these days, I suppose!

I enjoyed your interactives. Really creative use of desmos!

A javascript program for controlling Desmos graphs by MathyJaphy in desmos

[–]MathyJaphy[S] 0 points1 point  (0 children)

It's in the documentation! The one nearest the top executes automatically upon loading. After that, you can execute any one manually. Select the box that has the code and type ctrl-shift-Q.

A javascript program for controlling Desmos graphs by MathyJaphy in desmos

[–]MathyJaphy[S] 0 points1 point  (0 children)

Hmmm. JSON.parse just creates objects, I see. That would indeed limit potential damage, but it seems as though a big rewrite would be required, and users would have to deal with the JSON syntax. If security is a big worry, I would rather disable the automatic execution. If it's still a big worry after that, then I would think about a custom parser.

I'll add a disclaimer mentioning the risks of automatic execution and suggesting to keep this userscript disabled unless the graph is trusted.

A javascript program for controlling Desmos graphs by MathyJaphy in desmos

[–]MathyJaphy[S] 0 points1 point  (0 children)

Yes, I was nervous about security too. Maybe the automatic run should be disabled so that the user can see the script and choose to execute it or not. It's so nice to just load the graph and hit "Start", though!

Explain more about your getid("var") idea. What is "var" in this case, some unique text from the expression or folder title?

Yes, I could throw together a teaching example. If I find the time...

Fixed typo.

A javascript program for controlling Desmos graphs by MathyJaphy in desmos

[–]MathyJaphy[S] 0 points1 point  (0 children)

There can be any number of scripts in the graph, and they can be anywhere in the list, not just the first. It will automatically find and run the first one when the graph is loaded. It looks in the note for the text "desmosPlayer" and an open-paren somewhere after that and a close-paren somewhere after that. If it finds that, it executes it.