Project together. a new GUI about triangle solver
01-16-2018, 02:20 PM
Post: #1
 compsystems Senior Member Posts: 1,337 Joined: Dec 2013
Project together. a new GUI about triangle solver
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?
02-12-2018, 02:15 PM (This post was last modified: 02-27-2018 10:25 PM by compsystems.)
Post: #2
 compsystems Senior Member Posts: 1,337 Joined: Dec 2013
RE: Project together. a new GUI about triangle solver
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=...3333333333

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
02-12-2018, 02:31 PM
Post: #3
 DrD Senior Member Posts: 1,132 Joined: Feb 2014
RE: Project together. a new GUI about triangle solver
(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]
02-12-2018, 05:30 PM
Post: #4
 compsystems Senior Member Posts: 1,337 Joined: Dec 2013
RE: Project together. a new GUI about triangle solver
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
02-12-2018, 05:39 PM
Post: #5
 DrD Senior Member Posts: 1,132 Joined: Feb 2014
RE: Project together. a new GUI about triangle solver
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
02-12-2018, 05:40 PM
Post: #6
 Tim Wessman Senior Member Posts: 2,282 Joined: Dec 2013
RE: Project together. a new GUI about triangle solver
(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.

TW

Although I work for HP, the views and opinions I post here are my own.
02-12-2018, 08:33 PM
Post: #7
 Arno K Senior Member Posts: 463 Joined: Mar 2015
RE: Project together. a new GUI about triangle solver
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
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)