Dojo Toolkit Graphing Calculator Project Readme
Author: Jason Hays
Trac ID: jason_hays22
Contents:
Expressions
Variables, Functions, and uninitializing variables
toFrac in GraphPro
Numbers and bases
Graphing equations
Substitutes for hard to type characters
Making Functions
Decimal points, commas, and semicolons in different languages
Important mathematical functions
---------------Expressions----------------
The calculator has the ability to simplify a valid expression.
With Augmented Mathematical Syntax, users are allowed to use nonstandard operators in their expressions. Those operators include ^, !, and radical.
^ is used for exponentiation.
It is a binary operator, which means it needs a number on both the left and right side (like multiplication and division)
2^5 is an example of valid use of ^, and represents two to the power of five.
! is used for factorial.
It supports numbers that are not whole numbers through the use of the gamma function. It uses the number on its left side. Both 2! and 2.6! are examples of valid input in America. (2,6! is valid in some nations)
radicals can be used for either square root or various other roots.
to use it as a square root sign, there should only be a number on its right. If you put a number on the left as well, then it will use that number as the root.
To evaluate an expression, type in a valid expression, such as 2*(10+5), into the input box. If you are using GraphPro, then it is the smaller text box.
After you have chosen an expression, press Enter on either your keyboard or on the lower right of the calculator.
If it did not evaluate, make sure you correctly closed your parentheses.
In the Standard calculator, the answer will appear in the input box, in GraphPro, the answer will appear in the larger text box above.
On the keyboard, you can navigate through your previous inputs with the up and down arrow keys.
If you enter an operator when the textbox is empty or highlighted (like *) then Ans* should appear. That means the answer you got before will be multiplied by whatever you input next.
So try Ans*3. Whenever you start the calculator, Ans is set to zero.
--------------Variables, Functions, and uninitializing variables----------------
A variable is basically something that stores a value. If you saw Ans in the previous example, you've also seen a variable.
If you want to store your own number somewhere, you'll need to use the = operator.
Valid variable and function names include cannot start with numbers, do not include spaces, but can start with the alphabet (a-z or A-Z) and can have numbers within the names "var1" is a valid name
Input "myVar = 2" into the textbox and press "Enter." You've just saved a variable. Now if you ever type myVar into an expression, 2 will appear (unless you change it to something else).
Variables are best used to store Ans. Ans is overridden whenever you evaluate an expression, so it is good to store the value of Ans somewhere else before it is overridden.
If you want a variable (like myVar) to become empty, or undefined, you just need to set it equal to undefined.
Now try "myVar = undefined" Now myVar is no longer defined.
Functions are very useful for finding answers and gathering data.
You can use functions by inputting their name and their arguments.
For this example, I'll be using the functions named "sqrt" and "pow"
sqrt is a function with one argument. That argument has a name too, its name is 'x.' x is a very common name amongst built in functions
So, let's run a function. Input "sqrt" then input a left parenthesis (all arguments of a function go within parentheses). Now type a value for x, like 2.
Now close the parentheses with the right parenthesis. If you used 2, you should have "sqrt(2)" in the text box. If you press enter, you should get the square root of 2 back from the calculator.
Now for "pow" it has two arguments 'x' and 'y'
Type in "pow(" and pick a value for 'x' (I am picking 2 again)
but now, you need to separate the value you gave x with a list separator. Depending on your location, it is either a comma or a semicolon. I'm in America, and I use commas.
by this point, I have "pow(2,"
Now we need a value for 'y' (I'm using 3). Put a ')' and now I have 'pow(2,3)'
Press Enter, and, following my example, you should get 8
In this calculator, there are several ways to input arguments.
You've already seen the first way, just input numbers in a specific order based on the names.
The second way is with an arbitrary order, and storage.
With 'pow' I can input "pow(y=3, x=2)" and get the exact answer as before. x and y will retain their assigned values, so you will need to set them to undefined it you want to try the next way.
The third way is to let the calculator ask you for the values. Input "pow()" If the values have been assigned globally, then it will use those values, but otherwise, it will ask for values of x and y. They will not be stored globally this way.
I'll go ahead and mention that because of the way the calculator parses, underscores should not be used to name a variable like _#_ (where # is an integer of any length)
---------------toFrac()----------------
toFrac is a function that takes one parameter, x, and converts it to a fraction for you. It is only in GraphPro, not the Standard mode.
It will try to simplify pi, square roots, and rational numbers where the denominator is less than a set bound (100 right now).
Immediately after the calculator starts, toFrac may seen slow, but it just needs to finish loading when the calculator starts. After that, it will respond without delay.
For an example, input "toFrac(.5)" or (,5 for some). It will return "1/2"
For a more complicated example, input "toFrac(atan(1))" to get back "pi/4" (atan is also known as "arc tangent" or "inverse tangent")
--------------Numbers and bases----------------
This calculator supports multiple bases, and not only that, but non integer versions of multiple bases.
What is a base? Well, the numbers you know and love are base 10. That means that you count to all of the numbers up until 10 before you move on to add to the tenths place.
So, what about base 2? All of the numbers up until 2 are 0 and 1. If you want to type a base 2 number into the calculator, simply input "0b" (meaning base 2) followed by some number of 1's and 0's. 0b101 is 5 in base 10
Hexadecimal is 0x, and octal is 0o, but i won't go into too much detail on those here.
If you want an arbitrary integer base, type the number in the correct base, insert '#' and put the radix on the end. ".1#3" is the same as 1/3 in base 10
Because there is not yet cause for it, you cannot have a base that is not a whole number.
--------------Graphing Equations----------------
First thing is first, in GraphPro only, the "Graph" button in the top left corner opens the Graph Window
So, now you should see a single text box adjacent to "y="
Type the right side of the equation using 'x' as the independent variable.
"sin(x)" for example. To Graph it, make sure the checkbox to the left of the equation is selected, and press the Draw Selected button.
You can change the color in the color tab. By default, it is black. Under window options, you can change the window size and x/y boundaries
Let's add a second function. Go to the Add Function button, select the mode you want, and press Create. Another input box will appear.
If you selected x= as the Mode, then y is the independent variable for the line (an example is "x=sin(y)").
If you want to erase, check the checkboxes you want to erase, and press "Erase Selected"
And similarly, Delete Selected will delete the chosen functions
"Close" will terminate the Graph Window completely
---------------Substitutes for hard to type characters---------------
Some characters are not simple to add in for keyboard users, so there are substitutes that
没有合适的资源?快使用搜索试试~ 我知道了~
dojo release 1.6.1
共3503个文件
js:2399个
png:341个
css:294个
需积分: 10 10 下载量 78 浏览量
2011-07-06
08:21:25
上传
评论
收藏 5.25MB ZIP 举报
温馨提示
This download is ideal for situations where a custom build will not be required.This archive, containing the full Dojo, Dijit, and DojoX projects. Compressed and optimized for immediate deployment. All non-essential files have been removed from this distribution including tests and demonstrations. zip (5.3MB)
资源推荐
资源详情
资源评论
收起资源包目录
dojo release 1.6.1 (3503个子文件)
africa 11KB
antarctica 3KB
Storage.as 12KB
DojoExternalInterface.as 5KB
ExpressInstall.as 2KB
asia 26KB
australasia 11KB
backward 4KB
build.bat 2KB
claro.css 116KB
nihilo.css 80KB
tundra.css 78KB
soria.css 78KB
EnhancedGrid.css 36KB
EnhancedGrid.css 36KB
dijit.css 31KB
iphone-app.css 25KB
android-app.css 24KB
iphone.css 19KB
android.css 18KB
EnhancedGrid.css 17KB
claroGrid.css 14KB
tundraGrid.css 13KB
FilePickerTextBox.css 13KB
TabContainer.css 12KB
soriaGrid.css 12KB
nihiloGrid.css 12KB
claro_rtl.css 12KB
gantt.css 11KB
TabContainer.css 11KB
TabContainer.css 10KB
Slider.css 9KB
Grid.css 7KB
image.css 7KB
EnhancedGrid_rtl.css 7KB
Calendar.css 7KB
TabContainer.css 6KB
ExpandoPane.css 6KB
Calendar.css 6KB
Filter.css 6KB
nihilo_rtl.css 5KB
soria_rtl.css 5KB
Sorter.css 5KB
iphone-app-compat.css 5KB
FilePicker.css 5KB
tundra_rtl.css 5KB
toolbar.css 5KB
iphone-compat.css 5KB
buttons.css 5KB
commonIcons.css 5KB
android-compat.css 4KB
Portlet.css 4KB
commonIcons_rtl.css 4KB
Slider.css 4KB
Slider.css 4KB
Common.css 4KB
Slider.css 4KB
firebug.css 4KB
FloatingPane.css 4KB
Toolbar.css 4KB
editorPlugins.css 4KB
CollapsibleToolbar.css 4KB
Button.css 4KB
Menu.css 3KB
Button.css 3KB
FileUploader.css 3KB
ToggleSplitter.css 3KB
RollingList.css 3KB
Player.css 3KB
Dialog.css 3KB
Sorter.css 3KB
FileInput.css 3KB
Button.css 3KB
Button.css 3KB
editorIcons.css 3KB
Sorter_rtl.css 3KB
Dialog.css 3KB
Calendar.css 3KB
Calendar.css 3KB
Calendar.css 3KB
NumberSpinner.css 3KB
Standard.css 3KB
GraphPro.css 3KB
Common.css 3KB
Dialog.css 3KB
Dialog.css 3KB
GridContainer.css 3KB
Pagination.css 3KB
TimePicker.css 3KB
Tree.css 3KB
Common.css 3KB
Lightbox.css 2KB
AccordionContainer.css 2KB
document.css 2KB
TabContainer_rtl.css 2KB
StatusBar.css 2KB
CheckedMultiSelect.css 2KB
Select.css 2KB
HtmlFeedEntryViewer.css 2KB
SlideShow.css 2KB
共 3503 条
- 1
- 2
- 3
- 4
- 5
- 6
- 36
资源评论
scorpionqxq
- 粉丝: 20
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功