Calculation Cell
A standard calculation cell. Use to enter expressions. This is the default type.
Note Cell
Use to enter comments or text.
Version 1.01
Created by Jose L Cuevas @ExponentialWorks...
This is a pad calculator where we enter mathematical/logical expressions sequentially like in a note pad. When we run the pad all calculations are updated. Each expression/statements goes in its own line and each line in the pad becomes a "calculation cell".
A line can also be "note cell" with just text to document your work as you go. A note cell supports basic markdown syntax.
Each line has an icon indicating if it is a "calculation" or "note" cell. Pressing the icon on each cell lets you change its type.
When ready press the run icon to see the outcomes of all the calculations.
Use Ctrl-Enter to update the calculations on the pad.
Use Shift-Enter to create a new line as a note cell.
Press the download button to save a copy of the pad in your computer.
To open a pad file saved in your computer just drag and drop the file into the pad or use the folder icon to select a file.
A variable is an identifier that holds a value. A variable name must be a unique single word made up of letters, digits and the underscore. Spaces and other punctuation characters are not allowed. A variable name may not start with a digit. Some words have a special meaning in the pad like MIN, MAX, etc. These words are reserved keywords and can not be used as variable names.
Create a variable by assigning a value to a variable name. For example: a = 5
Remember to always initialize your variables to a valid value before using them in a calculation or a statement.
NOW
The current Unix timestamp.
PI
The PI constant.
125
250.25
-23.40
0.34
Literal numbers.
"Jose Cuevas"
"The name \"Jose\" was used!"
Text values are delimited inside a double quote. Use the \ to escape a double quote.
true
false
Boolean values.
25%
Percentage literals become their decimal value for example 0.25.
13:25
2:00PM
Hours literals become their equivalent in seconds.
2 days
1 week
2 hours
1 year
3 months
Time expressions are specified by a quantity followed by the time unit. They become their equivalent in seconds.
6/Sept/2021
6/September/2021
06/09/2021
06 september 2021
Date literals are specified using a space or a slash as the element delimeter and may specify the month as number, by its full name, or abbreviation. They become their equivalent in seconds.
cos(),sin(),tan(),cosh(),sinh(),tanh(),acos(),asin(),atan(),acosh(),asinh(),atanh(),atan2()
Trigonometry functions with their hyperbolic equivalents. These functions expect radians values.
min(value1, value2),max(value1, value2)
Returns the smallest or largest value from the the values passed.
abs(value)
Returns the absolute value
exp(value)
Returns "e" to the power of the value specified.
log(x)
Returns the natural logarithm (loge also, ln) of x.
log1p(x)
Returns the natural logarithm (loge also ln) of 1 + x for the number x.
pow(value)
Returns the value specified raised to the power specified. You can also use the "^" sign instead.
ceil(x)
Returns the smallest integer greater than or equal to x.
floor(x)
Returns the largest integer less than or equal to x.
hex(value, [length])
Returns a string with the hexadecimal representation of the given value. The optional parameter length sets the padding length. The default length is 2 digits.
find(search_for, text_to_search, [starting_at])
Returns the position at which a string is first found within text. First character is at position 0. Returns -1 if string is not found. This function is case sensitive.
date(format, timestamp)
Returns a string formatted according to the given format string using the given integer timestamp or the current time if no timestamp is given. More info.
Made with in Aguadilla, Puerto Rico