roots function

roots function - 4 equations with 4 unknowns - Messages

#21 Posted: 11/14/2024 5:05:31 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

In the same way, you can add points to a triangle.

geom-scb-v4_2.jpg

geom-scb-v4.jpg
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Alvaro Diaz Falconi 11/14/2024 5:41:00 AM
#22 Posted: 11/14/2024 6:03:55 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

In the same way, you can add points to a triangle.


Thanks again. You should know me: if the code is shorter, there are always several good reasons to say that it is better than the longer ones. Surely inefficient, but efficiency is often overrated.

In the traces menu of XYPlot, you have for the LineStyle.Method the options (Lines, Splines, Labels, etc.) If you add there the value "Polygon" maybe you can simplify the input for fill a region. In such case, the LineStyle.Pattern and LineStyle.Thiknes fields could represent the values for the for the border of the region, or maybe the values under the Symbol.Style fields, I don't see which one could be better. Or maybe "Polygon" goes under the field LineStyle.Pattern.

I don't know if a register for color transparency would be missing either.

BTW the goal is to enable the user to fill a region and mark its border by specifying only the points of the region once and as a simple matrix of XY values.

In any case, the notation you already have would not be touched, since it works very well. It would be very impractical to have to program the traces to represent a surface or vectors with changing colors if the current notation is lost.

Best regards.
Alvaro.
#23 Posted: 11/19/2024 5:27:23 PM
scb

scb

3 likes in 15 posts.

Group: User

Hi Alvaro and others.

The following is my way of utilising the fact that u/v equals c/b, and since I can apply the cosine-relations on the 3 related triangles, I get the needed 4. equation from u+v=a and u/v=c/b.
After some trials it turned out, that "FindRoot" with the NonlinearSolvers plugin installed, could solve the 4 unknowns in 4 equations (which was my initial idea and problem). I have tried the method on several triangles with succes.
I would very much like a comment.

Best wishes
Søren.

p.s. My last problem with this triangle-thing is a way to construct it (like in the old days) using only pen, paper, ruler and compass - no computer!

File not found.File not found.
2 users liked this post
Oscar Campo 11/19/2024 5:58:00 PM, francesco rapuano 11/19/2024 6:02:00 PM
#24 Posted: 11/20/2024 12:23:44 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Here is a version with two unknowns.

Triangle.sm (20 KiB) downloaded 76 time(s).
Triangle.png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 users liked this post
Вячеслав Мезенцев 11/20/2024 2:28:00 AM, Oscar Campo 11/20/2024 12:26:00 AM
#25 Posted: 11/20/2024 2:47:56 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

One more example.

triangle-from-angle.jpg

Russia ☭ forever, Viacheslav N. Mezentsev
#26 Posted: 11/20/2024 4:39:13 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

... p.s. My last problem with this triangle-thing is a way to construct it (like in the old days) using only pen, paper, ruler and compass - no computer! ...



Hi Søren. Here the procedure with only ruler and compass, perhaps with the addition of an angle protractor and a square, to simplify our lives, and an auxiliary geometric construction would remain to be carried out to find the radius of the circle with center F and radius given by (h+√(h^2+8*OB*EF))/2, where h, OB and EF are known, and since it is quadratic, it can also be constructed using only a ruler and compass.

geom-scb-anim.sm (33 KiB) downloaded 58 time(s).

a.gif

Best regards.
Alvaro.

2 users liked this post
Вячеслав Мезенцев 11/20/2024 4:48:00 PM, Oscar Campo 11/20/2024 4:46:00 PM
#27 Posted: 11/21/2024 1:06:12 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

Possible alternatives

P.S. Region(β,u) := (0<β<π Λ 0
triangle-from-angle-tips.jpg
Russia ☭ forever, Viacheslav N. Mezentsev
#28 Posted: 11/21/2024 3:12:20 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

A little shorter

Triangle (uni).sm (15 KiB) downloaded 58 time(s).

Triangle (uni).png

Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
francesco rapuano 11/21/2024 6:36:00 PM
#29 Posted: 11/21/2024 11:48:31 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Trigonometric and root free, exact version, also using the new capabilities of XYPlot.

geom-scb-new-xyplot.sm (26 KiB) downloaded 61 time(s).

sol.png

Best regards.
Alvaro.



5 users liked this post
francesco rapuano 11/21/2024 6:36:00 PM, Вячеслав Мезенцев 11/21/2024 9:58:00 PM, sergio 11/21/2024 10:47:00 PM, Oscar Campo 11/21/2024 4:24:00 PM, NDTM Amarasekera 11/21/2024 4:40:00 PM
#30 Posted: 11/26/2024 10:34:06 AM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Wrote



p.s. My last problem with this triangle-thing is a way to construct it (like in the old days) using only pen, paper, ruler and compass - no computer!



Here is a method I use to construct this triangle by trial and error, with "digital pen, paper, ruler and compass"


?si=plmK5j0jQs1Uvhtx

Best,

Oscar
  • New Posts New Posts
  • No New Posts No New Posts