use ->deg as default shifted function now that trig functions operate in degrees
(->rad is down-shifted function now)
This commit is contained in:
parent
5bcfb8a371
commit
774be02e1f
@ -168,7 +168,7 @@ ApplicationWindow
|
|||||||
["Shift", "1/x", " √<span style=\"text-decoration: overline\">x</span> ", "CL<i>x</i>"],
|
["Shift", "1/x", " √<span style=\"text-decoration: overline\">x</span> ", "CL<i>x</i>"],
|
||||||
["y<sup>x</sup> ", "ln(x)", "log(x)", "π"],
|
["y<sup>x</sup> ", "ln(x)", "log(x)", "π"],
|
||||||
["R▼", "e<sup>x</sup>", "10<sup>x</sup>", ""],
|
["R▼", "e<sup>x</sup>", "10<sup>x</sup>", ""],
|
||||||
["sin(x)", "cos(x)", "tan(x)", "►rad"],
|
["sin(x)", "cos(x)", "tan(x)", "►deg"],
|
||||||
["off", "STO", "RCL", "LAST<i>x</i>"]
|
["off", "STO", "RCL", "LAST<i>x</i>"]
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -180,7 +180,7 @@ ApplicationWindow
|
|||||||
["", "", "", ""],
|
["", "", "", ""],
|
||||||
["", "", "", ""],
|
["", "", "", ""],
|
||||||
["R▲", "", "", ""],
|
["R▲", "", "", ""],
|
||||||
["asin(x)", "acos(x)", "atan(x)", "►deg"],
|
["asin(x)", "acos(x)", "atan(x)", "►rad"],
|
||||||
["", "", "", ""]
|
["", "", "", ""]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -116,9 +116,9 @@ void process_cmd(char cmd){
|
|||||||
//////////
|
//////////
|
||||||
case '-':{
|
case '-':{
|
||||||
if (IsShiftedUp) {
|
if (IsShiftedUp) {
|
||||||
do_unary_op(to_radian_decn);
|
|
||||||
} else if (IsShiftedDown) {
|
|
||||||
do_unary_op(to_degree_decn);
|
do_unary_op(to_degree_decn);
|
||||||
|
} else if (IsShiftedDown) {
|
||||||
|
do_unary_op(to_radian_decn);
|
||||||
} else {
|
} else {
|
||||||
negate_decn(&stack(STACK_X));
|
negate_decn(&stack(STACK_X));
|
||||||
do_binary_op(add_decn);
|
do_binary_op(add_decn);
|
||||||
|
Loading…
Reference in New Issue
Block a user