use ->deg as default shifted function now that trig functions operate in degrees

(->rad is down-shifted function now)
This commit is contained in:
Jeff Wang 2021-01-30 19:00:37 -05:00
parent 5bcfb8a371
commit 774be02e1f
2 changed files with 4 additions and 4 deletions

View File

@ -168,7 +168,7 @@ ApplicationWindow
["Shift", "1/x", " √<span style=\"text-decoration: overline\">x</span> ", "CL<i>x</i>"],
["y<sup>x</sup> ", "ln(x)", "log(x)", "π"],
["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>"]
]
@ -180,7 +180,7 @@ ApplicationWindow
["", "", "", ""],
["", "", "", ""],
["R▲", "", "", ""],
["asin(x)", "acos(x)", "atan(x)", "►deg"],
["asin(x)", "acos(x)", "atan(x)", "►rad"],
["", "", "", ""]
]

View File

@ -116,9 +116,9 @@ void process_cmd(char cmd){
//////////
case '-':{
if (IsShiftedUp) {
do_unary_op(to_radian_decn);
} else if (IsShiftedDown) {
do_unary_op(to_degree_decn);
} else if (IsShiftedDown) {
do_unary_op(to_radian_decn);
} else {
negate_decn(&stack(STACK_X));
do_binary_op(add_decn);