Regarding Desmos Scientific and Four Function calculator

72 views
Skip to first unread message

Pooruvi Singh

unread,
Dec 31, 2023, 8:39:06 PM12/31/23
to desmos-api-discuss
I am integrating Desmos Scientific and Four Function Calculator I am using the  API Key available on the Desmos API v1.8 documentation

The view that I am getting for the scientific calculator is as follows  

Default-Scientific-calcualtor.png
I wish to have a view like the one in the image below where only the required features are included. 
I have gone through the Desmos documentation for including and excluding the specific feature using the constructor options but I am unable to find any option to achieve this view. 

Desired-scientific-calculator-view.png
Similarly, for the Four Function calculator, I am getting this view 

Four Function.png
I wish to exclude the undo and redo buttons like the one in the reference image 
Four Function desired.png

Are there any specific steps or considerations that I am missing I would greatly appreciate your guidance on this 


Chris Lusto

unread,
Jan 3, 2024, 11:27:54 AM1/3/24
to desmos-api-discuss
It looks like you're trying to recreate the "Florida" version of the scientific calculator, which uses some non-public options. We made some weird changes/concessions for Florida assessments and didn't make those options part of the officially supported API.

Fredrose Rebello

unread,
May 13, 2024, 9:39:05 AM5/13/24
to desmos-api-discuss
Hi,
i am integrating the same i am not able to patch or set expressions in the four function and scientific calculator its giving me error of setExpression is not a function when i tried to patch using calc.setExpression am i doing somethng wrong or there is some other function to set values for these 2 calculators?

Chris Lusto

unread,
May 13, 2024, 9:45:11 AM5/13/24
to desmos-api-discuss
The basic calculators only support a subset of the graphing calculator API, and `.setExpression()` is not in that subset. You can get/set entire states, but not manipulate individual expressions. For reference, the methods available on the basic calcs are documented here. They are currently:

BasicCalculator.getState()
BasicCalculator.setState(state, [options])
BasicCalculator.setBlank([options])
BasicCalculator.undo()
BasicCalculator.redo()
BasicCalculator.clearHistory()
BasicCalculator.resize()
BasicCalculator.focusFirstExpression()
BasicCalculator.observeEvent('change', function () {/.../})
BasicCalculator.unobserveEvent('change')
BasicCalculator.destroy()
BasicCalculator.updateSettings([options])

Best,
Chris
Reply all
Reply to author
Forward
0 new messages