From f2afbc975e249e765ee7d7452165912f1b4b479b Mon Sep 17 00:00:00 2001 From: Steve Zesch Date: Sat, 24 Nov 2012 20:49:56 -0500 Subject: Added inverse trig functions. --- data/buttons-advanced.ui | 294 ++++++++++++++++++++++++++++------------------- src/math-buttons.c | 9 ++ 2 files changed, 185 insertions(+), 118 deletions(-) diff --git a/data/buttons-advanced.ui b/data/buttons-advanced.ui index f784bda..48de81d 100644 --- a/data/buttons-advanced.ui +++ b/data/buttons-advanced.ui @@ -9,40 +9,8 @@ True False 5 - 10 + 11 True - - - True - True - True - False - False - - - Inverse - - - - - - True - False - <i>x</i><sup>−1</sup> - True - center - - - - - 6 - 7 - 2 - 3 - GTK_EXPAND | GTK_SHRINK | GTK_FILL - GTK_EXPAND | GTK_SHRINK | GTK_FILL - - a×b @@ -68,37 +36,6 @@ GTK_EXPAND | GTK_SHRINK | GTK_FILL - - - True - True - True - False - False - - - Factorial - - - - - - True - False - <i>x</i>! - True - - - - - 7 - 8 - 2 - 3 - GTK_EXPAND | GTK_SHRINK | GTK_FILL - GTK_EXPAND | GTK_SHRINK | GTK_FILL - - Im @@ -676,38 +613,6 @@ GTK_EXPAND | GTK_SHRINK | GTK_FILL - - - True - True - True - False - True - False - - - Absolute Value - - - - - - True - False - |<i>x</i>| - True - - - - - 8 - 9 - 2 - 3 - GTK_EXPAND | GTK_SHRINK | GTK_FILL - GTK_EXPAND | GTK_SHRINK | GTK_FILL - - Re @@ -748,26 +653,6 @@ GTK_EXPAND | GTK_SHRINK | GTK_FILL - - - Arg - True - True - True - False - True - False - - - - 9 - 10 - 2 - 3 - GTK_EXPAND | GTK_SHRINK | GTK_FILL - GTK_EXPAND | GTK_SHRINK | GTK_FILL - - ln @@ -933,7 +818,7 @@ True False - 2 + 3 3 True @@ -1040,11 +925,66 @@ GTK_EXPAND | GTK_SHRINK | GTK_FILL + + + acos + True + True + True + False + False + + + + 2 + 3 + GTK_EXPAND | GTK_SHRINK | GTK_FILL + GTK_EXPAND | GTK_SHRINK | GTK_FILL + + + + + asin + True + True + True + False + False + + + + 1 + 2 + 2 + 3 + GTK_EXPAND | GTK_SHRINK | GTK_FILL + GTK_EXPAND | GTK_SHRINK | GTK_FILL + + + + + atan + True + True + True + False + False + + + + 2 + 3 + 2 + 3 + GTK_EXPAND | GTK_SHRINK | GTK_FILL + GTK_EXPAND | GTK_SHRINK | GTK_FILL + + 6 10 - 2 + 3 @@ -1100,6 +1040,124 @@ GTK_EXPAND | GTK_SHRINK | GTK_FILL + + + True + True + True + False + False + + + Inverse + + + + + + True + False + <i>x</i><sup>−1</sup> + True + center + + + + + 10 + 11 + 1 + 2 + GTK_EXPAND | GTK_SHRINK | GTK_FILL + GTK_EXPAND | GTK_SHRINK | GTK_FILL + + + + + True + True + True + False + False + + + Factorial + + + + + + True + False + <i>x</i>! + True + + + + + 10 + 11 + 2 + 3 + GTK_EXPAND | GTK_SHRINK | GTK_FILL + GTK_EXPAND | GTK_SHRINK | GTK_FILL + + + + + True + True + True + False + True + False + + + Absolute Value + + + + + + True + False + |<i>x</i>| + True + + + + + 10 + 11 + 3 + 4 + GTK_EXPAND | GTK_SHRINK | GTK_FILL + GTK_EXPAND | GTK_SHRINK | GTK_FILL + + + + + Arg + True + True + True + False + True + False + + + + 10 + 11 + 4 + 5 + GTK_EXPAND | GTK_SHRINK | GTK_FILL + GTK_EXPAND | GTK_SHRINK | GTK_FILL + + + + + diff --git a/src/math-buttons.c b/src/math-buttons.c index cd28ee7..a64c27f 100644 --- a/src/math-buttons.c +++ b/src/math-buttons.c @@ -175,6 +175,15 @@ static ButtonData button_data[] = { {"hyperbolic_tangent", "tanh ", FUNCTION, /* Tooltip for the hyperbolic tangent button */ N_("Hyperbolic Tangent")}, + {"inverse_sine", "asin", FUNCTION, + /* Tooltip for the inverse sine button */ + N_("Inverse Sine")}, + {"inverse_cosine", "acos", FUNCTION, + /* Tooltip for the inverse cosine button */ + N_("Inverse Cosine")}, + {"inverse_tangent", "atan", FUNCTION, + /* Tooltip for the inverse tangent button */ + N_("Inverse Tangent")}, {"inverse", "⁻¹", FUNCTION, /* Tooltip for the inverse button */ N_("Inverse [Ctrl+I]")}, -- cgit v1.2.1