 Project together. a new GUI about triangle solver - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Project together. a new GUI about triangle solver (/thread-9951.html) Project together. a new GUI about triangle solver - compsystems - 01-16-2018 02:20 PM Hello, I have seen many applications of civil engineering with sophisticated graphic interfaces GUI. No applications made by the HP community, of math, geometry or similar with sophisticated GUI, the idea is that among several programmers, we make a better application of triangle solver, TRIANCALC style http://triancal.esy.es/ Who joins the project? RE: Project together. a new GUI about triangle solver - compsystems - 02-12-2018 02:15 PM I started with the mathematical part written in XCAS, then I port it from xcas to hp-prime, the first version is a version by formulas, the second will be solving a system Someone helps me with the GUI, because the INPUT command is very limited Thank you PHP Code: `// triangle Solver version alpha 0.1 By: compsystems// CASE_1_11_aBCtriangleSolverCase_1_11_aBC( Sidea, AngleB , AngleC ):={ // side a with Angle B, C  local AngleA, Sideb, Sidec;   AngleA := 180 - (AngleB + AngleC); // A = 180° - (B + C) // ANGULO FALTANTE CON SUMA DE ANGULOS DE ENTRADA  Sideb := (Sidea*sin(AngleB))/sin(AngleA);  //  b:= (a*sin(B))/sin(A)   Sidec := (Sidea*sin(AngleC))/sin(AngleA);  //  c:= (a*sin(C))/sin(A)    return [ AngleA, AngleB, AngleC, Sidea, Sideb, Sidec ];}:;// CASE_1_12_aACtriangleSolverCase_1_12_aAC( Sidea, AngleA , AngleC ):={ // side a with Angle A, C  local AngleB, Sideb, Sidec;   AngleB := 180 - (AngleA + AngleC); // B = 180° - (C + A) // ANGULO FALTANTE CON SUMA DE ANGULOS DE ENTRADA  Sideb := (Sidea*sin(AngleB))/sin(AngleA);  //  b:= (a*sin(B))/sin(A)  Sidec := (Sidea*sin(AngleC))/sin(AngleA);  //  c:= (a*sin(C))/sin(A)    return [ AngleA, AngleB, AngleC, Sidea, Sideb, Sidec ];}:;// CASE_1_13_aABtriangleSolverCase_1_13_aAB( Sidea, AngleA , AngleB ):={ // side a with Angle A, B  local AngleC, Sideb, Sidec;   AngleC := 180 - (AngleA + AngleB); // C = 180° - (A + B) // ANGULO FALTANTE CON SUMA DE ANGULOS DE ENTRADA  Sideb := (Sidea*sin(AngleB))/sin(AngleA);  //  b:= (a*sin(B))/sin(A)  Sidec := (Sidea*sin(AngleC))/sin(AngleA);  //  c:= (a*sin(C))/sin(A)    return [ AngleA, AngleB, AngleC, Sidea, Sideb, Sidec ];}:;// CASE_1_21_bACtriangleSolverCase_1_21_bAC( Sideb, AngleA , AngleC ):={ // side b with Angle A, C  local AngleB, Sidea, Sidec;   AngleB := 180 - (AngleA + AngleC); // C = 180° - (A + C) // ANGULO FALTANTE CON SUMA DE ANGULOS DE ENTRADA  Sidea := (Sideb*sin(AngleA))/sin(AngleB);  //  a:= (c*sin(A))/sin(B)  Sidec := (Sideb*sin(AngleC))/sin(AngleB);  //  c:= (a*sin(C))/sin(B)    return [ AngleA, AngleB, AngleC, Sidea, Sideb, Sidec ];}:;// CASE_1_31_cABtriangleSolverCase_1_31_cAB( Sidec, AngleA , AngleB ):={ // side c  local AngleC, Sidea, Sideb; // ANGULO FALTANTE CON SUMA DE ANGULOS DE ENTRADA  AngleC := 180 - (AngleA + AngleB); // C = 180° - (A + B).  Sidea := (Sidec*sin(AngleA))/sin(AngleC);  //  a:= (c*sin(A))/sin(C)  Sideb := (Sidec*sin(AngleB))/sin(AngleC);  //  b:= (c*sin(B))/sin(C)    return [ AngleA, AngleB, AngleC, Sidea, Sideb, Sidec ];}:;}:; ` triangleSolverCase_1_11_aBC(125,108.33333333333,61.33333333333); [10.3333333333,108.333333333,61.3333333333,125,661.494658379,611.447681794] test http://triancal.esy.es/?lang=en&a=125&B=108.33333333333&C=61.33333333333 triangleSolverCase_1_11_aBC(3,45.,60); [75.0,45.0,60,3,2.19615242271,2.6897264165] test http://triancal.esy.es/?lang=en&a=3&B=45&C=60 RE: Project together. a new GUI about triangle solver - DrD - 02-12-2018 02:31 PM (02-12-2018 02:15 PM)compsystems Wrote:  Someone helps me with the GUI, Thank you Built in app: Triangle Solver You're welcome [attachment=5666] RE: Project together. a new GUI about triangle solver - compsystems - 02-12-2018 05:30 PM the app pre-included version is very limited, it only has 6 fields, the idea is to create an app similar to http://triancal.esy.es/ and much more interactive RE: Project together. a new GUI about triangle solver - DrD - 02-12-2018 05:39 PM the app pre-included version is very convenient, it only needs 6 fields, the idea is to avoid an app similar to http://triancal.esy.es/ which is overly interactive RE: Project together. a new GUI about triangle solver - Tim Wessman - 02-12-2018 05:40 PM (01-16-2018 02:20 PM)compsystems Wrote:  Who joins the project? Generally, you have to attract people to a project that already has work done on it. Else, it just comes across as "I have something I want. Who is going to make it for me?" If you want a more fancy triangle solver, show some work on it and you might attract others to help. RE: Project together. a new GUI about triangle solver - Arno K - 02-12-2018 08:33 PM I wrote something similar for every programmable calculator I owned, that makes about 5 different operating systems and I always found it more convenient to do some of the calculations by hand when needed instead of including endless lines with multiply cases in that program, perhaps because I usually deal with pupils in my helping school, perhaps because I think that things easily done by hand shall be done by hand. For quick checking of results these angles and sides thing always was (and will be ) enough. Arno