starmath/inc/strings.hrc                  |    9 ++++++++-
 starmath/source/ElementsDockingWindow.cxx |   11 +++++++++--
 2 files changed, 17 insertions(+), 3 deletions(-)

New commits:
commit 2b29e16ea0fca627d71b61af98df0f543e6f206b
Author:     dante <dante19031...@gmail.com>
AuthorDate: Wed Nov 4 18:00:23 2020 +0100
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sat Nov 7 07:10:33 2020 +0100

    Starmath examples renovated
    
    Change-Id: Iff286171ddba92373d400763eb78769e37f40f37
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105302
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/starmath/inc/strings.hrc b/starmath/inc/strings.hrc
index b9377eff1081..8a303127d245 100644
--- a/starmath/inc/strings.hrc
+++ b/starmath/inc/strings.hrc
@@ -298,8 +298,15 @@
 #define RID_EXAMPLE_CIRCUMFERENCE_HELP      
NC_("RID_EXAMPLE_CIRCUMFERENCE_HELP", "Circumference" )
 #define RID_EXAMPLE_MASS_ENERGY_EQUIV_HELP  
NC_("RID_EXAMPLE_MASS_ENERGY_EQUIV_HELP", "Mass–energy equivalence" )
 #define RID_EXAMPLE_PYTHAGOREAN_THEO_HELP   
NC_("RID_EXAMPLE_PYTHAGOREAN_THEO_HELP", "Pythagorean theorem" )
-#define RID_EXAMPLE_A_SIMPLE_SERIES_HELP    
NC_("RID_EXAMPLE_A_SIMPLE_SERIES_HELP", "A simple series" )
+#define RID_EXAMPLE_A_TAYLOR_SERIES_HELP    
NC_("RID_EXAMPLE_A_TAYLOR_SERIES_HELP", "Taylor series" )
 #define RID_EXAMPLE_GAUSS_DISTRIBUTION_HELP 
NC_("RID_EXAMPLE_GAUSS_DISTRIBUTION_HELP", "Gauss distribution" )
+#define RID_EXAMPLE_EULER_LAGRANGE_HELP     
NC_("RID_EXAMPLE_EULER_LAGRANGE_HELP", "Euler-Lagrange equation" )
+#define RID_EXAMPLE_FTC_HELP                NC_("RID_EXAMPLE_FTC_HELP", 
"Fundamental theorem of calculus" )
+#define RID_EXAMPLE_CAOS_HELP               NC_("RID_EXAMPLE_CAOS_HELP", 
"Chaos equation" )
+#define RID_EXAMPLE_EULER_IDENTITY_HELP     
NC_("RID_EXAMPLE_EULER_IDENTITY_HELP", "Euler's identity" )
+#define RID_EXAMPLE_2NEWTON                 NC_("RID_EXAMPLE_2NEWTON", 
"Newton's second law" )
+#define RID_EXAMPLE_GENERAL_RELATIVITY_HELP 
NC_("RID_EXAMPLE_GENERAL_RELATIVITY_HELP", "General relativity")
+#define RID_EXAMPLE_SPECIAL_RELATIVITY_HELP 
NC_("RID_EXAMPLE_SPECIAL_RELATIVITY_HELP", "Special relativity")
 
 #define RID_FONTREGULAR                     NC_("RID_FONTREGULAR", "Standard" )
 #define RID_FONTITALIC                      NC_("RID_FONTITALIC", "Italic" )
diff --git a/starmath/source/ElementsDockingWindow.cxx 
b/starmath/source/ElementsDockingWindow.cxx
index 8850ca49fcbb..aa96a1e0bb7f 100644
--- a/starmath/source/ElementsDockingWindow.cxx
+++ b/starmath/source/ElementsDockingWindow.cxx
@@ -244,10 +244,17 @@ const SmElementDescr SmElementsControl::m_aOthersList[] =
 
 const SmElementDescr SmElementsControl::m_aExamplesList[] =
 {
+    {"{func e}^{i %pi} + 1 = 0", RID_EXAMPLE_EULER_IDENTITY_HELP},
     {"C=%pi cdot d = 2 cdot %pi cdot r", RID_EXAMPLE_CIRCUMFERENCE_HELP},
-    {"E=mc^2", RID_EXAMPLE_MASS_ENERGY_EQUIV_HELP},
     {"a^2 + b^2 = c^2", RID_EXAMPLE_PYTHAGOREAN_THEO_HELP},
-    {"f ( x ) = sum from { { i = 0 } } to { infinity } { {f^{(i)}(0)} over 
{i!} x^i}", RID_EXAMPLE_A_SIMPLE_SERIES_HELP},
+    {"F = m a", RID_EXAMPLE_2NEWTON},
+    {"E = m c^2", RID_EXAMPLE_MASS_ENERGY_EQUIV_HELP},
+    {"G_{%mu %nu} + %LAMBDA g_{%mu %nu}= frac{8 %pi G}{c^4} T_{%mu %nu}", 
RID_EXAMPLE_GENERAL_RELATIVITY_HELP},
+    {" %DELTA t' = { %DELTA T } over sqrt{ 1 - v^2 over c^2 } ", 
RID_EXAMPLE_SPECIAL_RELATIVITY_HELP },
+    { "d over dt left( {partial L}over{partial dot q} = {partial 
L}over{partial q} right)", RID_EXAMPLE_EULER_LAGRANGE_HELP },
+    {"int from a to b f'(x) dx = f(a) - f(b)", RID_EXAMPLE_FTC_HELP},
+    { "abs{ %delta Z(t) } approx e^{%lambda t} abs{ %delta Z(0) }", 
RID_EXAMPLE_CAOS_HELP},
+    {"f ( x ) = sum from { { n = 0 } } to { infinity } { {f^{(n)}(x_0)} over 
{n!} (x-x_0)^n}", RID_EXAMPLE_A_TAYLOR_SERIES_HELP},
     {"f ( x ) = {1} over {%sigma sqrt{2%pi} }func e^-{{(x-%mu)^2} over 
{2%sigma^2}}", RID_EXAMPLE_GAUSS_DISTRIBUTION_HELP},
 };
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to