Desmos: Brief Update


See with code MZFZHF to see the result of playing with the computational layer in Desmos.

I have to give them a thumbs up for scanning social media and seeing my dilemma and pointing me to their site and replying within a few hours when I was stuck. The documentation on how to do arithmetic is a little sketchy. I eventually figured out to use the simpleFunction function.

Here is how I coded the graph:
#pull the mean and standard deviation from the user input
themean = table.cellNumericValue(1,1)
thedeviation = table.cellNumericValue(1,2)

#drop mean in as u and standard deviation in as s
number(“u”) : themean
number(“s”) : thedeviation

#set the good viewing rectange
bounds: makeBounds(lowest, highest, lowly, highly)

Here is how I coded the table:

Eventually I should put in error checks to confirm data types and the like, but enough for now.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s