ScientificCalculator - YiZhang-Paul/Mock_Up_Calculator GitHub Wiki
Namespace: CalculatorClassLibrary
Extends: StandardCalculator
Implements: IScientificCalculator
Description: Scientific calculator type.
Constructors | Usage |
---|---|
ScientificCalculator(IInputBuffer, IOperatorLookup, IUnitConverter, IOperatorConverter, IExpressionBuilder, IExpressionParser, IEvaluate, IMemoryStorage) | Initializes an instance of ScientificCalculator class with injected services |
Properties | Usage |
---|---|
AngularUnit<int> | get current angular unit used by calculator |
Expression<string> (Inherited) | get current expression held in calculator |
Input<string> (Inherited) | get data held in calculator input buffer |
LastResult<decimal> (Inherited) | get most recent calculation result |
MemoryValues<decimal[]> (Inherited) | get a copy of all stored memory values |
Methods | Usage |
---|---|
Add(decimal) (Inherited) | add input to calculator input buffer |
Add(string) (Inherited) | add input to calculator input buffer |
ChangeAngularUnit() | rotate between supported angular units |
CheckTrigonometricKey(string) | attach angular unit notation to trigonometric operator |
Clear() (Inherited) | clear all input and expressions in calculator |
ClearInput() (Inherited) | clear the content of calculator input buffer |
Evaluate() (Inherited) | evaluate current expressions/input stored in calculator |
IsSpecialKey(string) (Inherited) | check if specified input key is a special key |
MemoryClear() (Inherited) | clear all values in memory |
MemoryMinus(int, decimal) (Inherited) | subtract arbitrary value from memory value at specified index |
MemoryPlus(int, decimal) (Inherited) | add arbitrary value to memory value at specified index |
MemoryRecall() (Inherited) | overwrite input buffer content to most recent memory value |
MemoryRemove(int) (Inherited) | remove value in memory at specified index |
MemoryRetrieve(int) (Inherited) | retrieve value in memory at specified index |
MemoryStore(decimal) (Inherited) | store value in memory |
Undo() (Inherited) | revoke the most recent modification to calculator input buffer |