Poll
2 votes (33.33%) | |||
No votes (0%) | |||
No votes (0%) | |||
No votes (0%) | |||
1 vote (16.66%) | |||
2 votes (33.33%) | |||
1 vote (16.66%) | |||
2 votes (33.33%) | |||
3 votes (50%) | |||
1 vote (16.66%) |
6 members have voted
Direct: https://youtu.be/eX5sjvcC9Hs
The question for the poll is what do you think of the video?
Quote: WizardHere is a link to the graphing calculator seen in my video, done by our own JB.
This graphing calculator is so cool. Its part of an emerging set of online calculators that seem kind of transformational -at least for those of us that don't have MATLAB or MATHEMATICA. I would love for JB to write a short post about what was involved in producing this.
I haven't yet watched the Euler's Identity video, but I will do so. It sounds interesting.
That’s what I thought, too, but I found references that have it as “you-ler.”Quote: Ace2I think Euler is actually pronounced like “Oiler”
Quote: Ace2I think Euler is actually pronounced like “Oiler”
Dang, I hadn't thought of that. Now that you mention it, I think that's how my math teacher(s) in college pronounced it.
In fact, "Euler's Method" was the key plot point in Hidden Figures. In this scene (skip to 0:47 if you wish), two characters pronounce it as "oil-er." Dang.
Direct: https://www.youtube.com/watch?v=v-pbGAts_Fg
Quote: gordonm888This graphing calculator is so cool. Its part of an emerging set of online calculators that seem kind of transformational -at least for those of us that don't have MATLAB or MATHEMATICA. I would love for JB to write a short post about what was involved in producing this.
The most challenging part was discovering, and trying to work around, the hidden dilemma that awaits anyone seeking to implement a graphing calculator. I hereby name it the Needle in an Infinite Haystack problem.
Each one-pixel-wide "slice" of the x axis represents an infinite number of x values. The dilemma is, for discontinuous functions, how do you determine if there is an x value within that thin-yet-infinite interval which produces a y value within view (or anywhere really), and if so, what that x value is so that you can evaluate the function at that value? The goal of course being to plot something, if there is something there to plot.
For example, x! only produces output if x is an integer. I currently have it “rigged” to always evaluate integers unless there are too many, but if your function is, say, (x + 0.01)! then the dilemma rears its ugly head -- the graph is empty, because the calculator has no way of knowing that it should evaluate the function at x values which are 0.01 less than an integer.
I did implement the gamma function, so I might just make x! graph gamma(x+1) instead, but there are plenty of other functions such as x^-x where the problem manifests.
Ultimately, I divide the width (1000 pixels) by the x-axis range and evaluate the functions at equal increments, in addition to integers that aren't already included, as mentioned above. In other words, I see no practical/efficient solution to the Needle in an Infinite Haystack problem. I couldn't even craft a search query for it (try searching Google where your terms include "graphing calculator" and "problem" and you'll see what I mean, if it isn't already obvious). But, I take comfort in the fact that other online graphing calculators more or less exhibit the same behavior as mine in this regard.
Then there were boilerplate issues, such as the discovery of a Chrome bug whereby an SVG path is erroneously closed using the stroke color rather than the fill color (even with fill:transparent; or fill:none;) when the number of points in said path exceeds some arbitrary (and variable) threshold; so I had to break up each path into smaller chunks that Chrome can handle.
I also tried implementing it using a <canvas> element, but <canvas> sucks! If you zoom in, it just gets pixelated - so I reverted to SVG. I build a large string representing the SVG and set the innerHTML to that; it's much simpler than the alternative -- and you would still have to build SVG paths as strings anyway if you used the "proper" method, and paths are the vast majority of the SVG content for this particular project, so just building a large string was easiest.
Quote: gerback123Great job, I just used euler's number to calculate probability of the back to back royals I recently hit at Red Rock
Congratulations!
If you care to phrase the question in a specific way, I'd be happy to offer my answer.
Quote: WizardThat would be a good approximation for two out of two royals. I think the more appropriate question is what are the odds of back to back royals given x total hands played. To be honest, I'm not sure what the Euler formula you refer to says.
Wouldn't that be Poisson?
Quote: rsactuaryWouldn't that be Poisson?
That would be a good way to approximate it and how I would do it.