diff --git a/application/calculator/functiondatabase.cpp b/application/calculator/functiondatabase.cpp
index 2d61332..47f7da3 100644
--- a/application/calculator/functiondatabase.cpp
+++ b/application/calculator/functiondatabase.cpp
@@ -11,7 +11,7 @@ FunctionDatabase::FunctionDatabase(QObject* parent) :
d->functions.insert("sqrt", {
"sqrt", {
{tr("Calculates the square root of a number"),
- {{"x", tr("Number to calculate the square root of")}}},
+ {{"", tr("Number to calculate the square root of")}}},
}
});
d->functions.insert("cbrt", {
@@ -20,22 +20,29 @@ FunctionDatabase::FunctionDatabase(QObject* parent) :
{{"x", tr("Number to calculate the cube root of")}}},
}
});
+ d->functions.insert("root", {
+ "root", {
+ {tr("Calculates the nth root of a number"),
+ {{"x", tr("Number to calculate the nth root of")},
+ {tr("degree", "Polynomial degree"), tr("Degree of root to calculate")}}},
+ }
+ });
d->functions.insert("sin", {
"sin", {
{tr("Calculates the sine of an angle"),
- {{"angle", tr("Angle to calculate the sine of")}}},
+ {{tr("angle"), tr("Angle to calculate the sine of")}}},
}
});
d->functions.insert("cos", {
"cos", {
{tr("Calculates the cosine of an angle"),
- {{"angle", tr("Angle to calculate the cosine of")}}},
+ {{tr("angle"), tr("Angle to calculate the cosine of")}}},
}
});
d->functions.insert("tan", {
"tan", {
{tr("Calculates the tangent of an angle"),
- {{"angle", tr("Angle to calculate the tangent of")}}},
+ {{tr("angle"), tr("Angle to calculate the tangent of")}}},
}
});
d->functions.insert("log", {
@@ -43,7 +50,7 @@ FunctionDatabase::FunctionDatabase(QObject* parent) :
{{"x", tr("Number to take the logarithm of")}}},
{tr("Calculates the logarithm of a number, specifying a base"),
{{"x", tr("Number to take the logarithm of")},
- {"base", tr("Base of the logarithm")}}}}
+ {tr("base"), tr("Base of the logarithm")}}}}
});
d->functions.insert("ln", {
"ln", {
@@ -51,6 +58,18 @@ FunctionDatabase::FunctionDatabase(QObject* parent) :
{{"x", tr("Number to take the natural logarithm of")}}},
}
});
+ d->functions.insert("abs", {
+ "abs", {
+ {tr("Calculates the absolute value of a number"),
+ {{"x", tr("Number to take the absolute value of")}}},
+ }
+ });
+ d->functions.insert("exp", {
+ "exp", {
+ {tr("Calculates e raised to the power of a number"),
+ {{"x", tr("Number to raise e to the power of")}}},
+ }
+ });
}
FunctionDatabase::~FunctionDatabase() {
diff --git a/application/translations/en_US.ts b/application/translations/en_US.ts
index 15bf125..90a4133 100644
--- a/application/translations/en_US.ts
+++ b/application/translations/en_US.ts
@@ -394,65 +394,118 @@
-
+
+
+
+
+
+
+
+ Polynomial degree
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
+
-
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Main
diff --git a/application/translations/vi_VN.ts b/application/translations/vi_VN.ts
index 8bb66d7..74be514 100644
--- a/application/translations/vi_VN.ts
+++ b/application/translations/vi_VN.ts
@@ -394,65 +394,118 @@
-
+
+
+
+
+
+
+
+ Polynomial degree
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
+
-
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Main