Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Maths
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2017-08-01 12:06:34 +0300
committerDavid Crocker <dcrocker@eschertech.com>2017-08-01 21:48:21 +0300
commitd810d0842d4cee0c3ced78f7836f9b7de88885fd (patch)
treecfe12f8add576928978ac03142fab1e8d8d77cef /Maths
parentbfc4132a3455dcc2691710b4d627a18c49c346db (diff)
Updated a wxMaxima file
Diffstat (limited to 'Maths')
-rw-r--r--Maths/BedLevelling-2-point.wxm17
1 files changed, 15 insertions, 2 deletions
diff --git a/Maths/BedLevelling-2-point.wxm b/Maths/BedLevelling-2-point.wxm
index 27876d05..b91659a5 100644
--- a/Maths/BedLevelling-2-point.wxm
+++ b/Maths/BedLevelling-2-point.wxm
@@ -1,57 +1,70 @@
/* [wxMaxima batch file version 1] [ DO NOT EDIT BY HAND! ]*/
-/* [ Created with wxMaxima version 14.12.1 ] */
-
+/* [ Created with wxMaxima version 17.05.0 ] */
/* [wxMaxima: input start ] */
eq1:h=H+a*x+b*y;
/* [wxMaxima: input end ] */
+
/* [wxMaxima: input start ] */
eq2:h0=H+a*x0+b*y0;
/* [wxMaxima: input end ] */
+
/* [wxMaxima: input start ] */
eq3:h1=H+a*x1+b*y1;
/* [wxMaxima: input end ] */
+
/* [wxMaxima: input start ] */
eq4:h2=H+a*(x0+y1-y0)+b*(y0-(x1-x0));
/* [wxMaxima: input end ] */
+
/* [wxMaxima: input start ] */
eq5:h2=h0;
/* [wxMaxima: input end ] */
+
/* [wxMaxima: input start ] */
eq6:subst(eq5,eq4);
/* [wxMaxima: input end ] */
+
/* [wxMaxima: input start ] */
eq7:solve([eq2,eq3,eq6],[a,b,H]);
/* [wxMaxima: input end ] */
+
/* [wxMaxima: input start ] */
eq8:subst(eq7,eq1);
/* [wxMaxima: input end ] */
+
/* [wxMaxima: input start ] */
eq9:dhbydh0=factor(diff(rhs(eq8),h0));
/* [wxMaxima: input end ] */
+
/* [wxMaxima: input start ] */
eq10:dhbydh1=factor(diff(rhs(eq8),h1));
/* [wxMaxima: input end ] */
+
/* [wxMaxima: input start ] */
eq11:expand((x1-x0)^2+(y1-y0)^2)=d^2;
/* [wxMaxima: input end ] */
+
/* [wxMaxima: input start ] */
eq12:subst(eq11,eq9);
/* [wxMaxima: input end ] */
+
/* [wxMaxima: input start ] */
eq13:subst(eq11,eq10);
/* [wxMaxima: input end ] */
+
+
/* Maxima can't load/batch files which end with a comment! */
"Created with wxMaxima"$