roots function

roots function - 4 equations with 4 unknowns - Messages

#1 Posted: 10/20/2024 4:57:01 PM
scb

scb

3 likes in 15 posts.

Group: User

Trying to construct a triangle from an angle A, its bisector line h and the opposite side.
I have tried to attach a couple of .pgn files and the .sm file, can't see if I succeded.

Yours Søren Chr. Bøttger.
#2 Posted: 10/22/2024 2:41:52 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi. Something like this?

https://smath.com/en-US/cloud/worksheet/y2bVFCnr

Best regards.
Alvaro.

EDIT: Uploading the files:

geom.png

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

geom-scb.pdf (174 KiB) downloaded 51 time(s).
1 users liked this post
scb 10/23/2024 6:54:00 PM
#3 Posted: 11/6/2024 6:26:34 PM
scb

scb

3 likes in 15 posts.

Group: User

I do not quite understand your reply on my problem (:triangle from angle A, its bisector h and its opposite side a). My intention was, that the value of h is given, but as far as I can see, you are using the intersection between a and h named D instead with a coordinate for D = 2.7+0*i. I can nowhere find a value for h, and likewise I do not see a calculation of the coordinate for D, so it seems to me, that it is the coordinates for D which you are taking for given in your solution.
Please correct me if I am wrong.
In the past few weeks I have succeded in solving the problem myself, so with this reply I am just hoping, that you will comment on the above mentioned problems.
Anyway thanks for your interest.
Yours
Søren Christian Bøttger
#4 Posted: 11/11/2024 1:00:35 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

I do not quite understand your reply on my problem (:triangle from angle A, its bisector h and its opposite side a). My intention was, that the value of h is given, but as far as I can see, you are using the intersection between a and h named D instead with a coordinate for D = 2.7+0*i. I can nowhere find a value for h, and likewise I do not see a calculation of the coordinate for D, so it seems to me, that it is the coordinates for D which you are taking for given in your solution.
Please correct me if I am wrong.
In the past few weeks I have succeded in solving the problem myself, so with this reply I am just hoping, that you will comment on the above mentioned problems.
Anyway thanks for your interest.
Yours
Søren Christian Bøttger



Hi. You're right, I don't show the final results, here they are:

BIS.png

I chose the intersection between h and BC because as given data because I don't know in which form you have the bisector: as length? as slope? The equation of the line h?

Best regards.
Alvaro.
#5 Posted: 11/11/2024 10:00:28 PM
scb

scb

3 likes in 15 posts.

Group: User

Hi, Alvaro.

Thanks for your reply, but unfortunately I still do not understand your solution, and atop of that my computer refuses to load your .sm file, because I use an older version of SmathDesktop (since my Linux can't install the latest version).
Answering your question, I define h (AD) as length.
If I use your numbers for angle A (37 degs), side BC (4) and the AD (3.6245) you have calculated from your chosen position of point D, I arrive at the same triangle as you do.
But, since I do not understand your approach, I wonder if I could challenge you to solve the following triangle (and referring to your drawing): angle A (BAC) 40 degrees, opposite side a (BC) 4 cm and angle A's bisector h (AD) 3 cm.
I'm looking forward to see your solution.

Yours Søren
#6 Posted: 11/12/2024 1:03:42 AM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

(since my Linux can't install the latest version).


I also use linux, with latest smath version.
Could you send your linux distro and kernel?
#7 Posted: 11/12/2024 5:51:22 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi Søren. This is a way for solve given the bisector length, depending of the guess value 1 or 10:

sol1.png

sol2.png

The red circle is the "arco capaz", in Spanish, I don't know how to call it in English (https://es.wikipedia.org/wiki/Arco_capaz)

Here an explanation about how to draw it by hand:

sol3.png

geom-scb-v2.sm (84 KiB) downloaded 49 time(s).

Best regards.
Alvaro.
#8 Posted: 11/12/2024 5:17:14 PM
scb

scb

3 likes in 15 posts.

Group: User

Hi, Alvaro.

Thanks for your reply, but unfortunately I still find it difficult to comprehend your math, which of course is my problem.
Hoping, that you (and mayby some others too) would be interested in my solution, I present it here.

Yours Søren

File not found.File not found.
1 users liked this post
Alvaro Diaz Falconi 11/13/2024 1:02:00 AM
#9 Posted: 11/12/2024 5:19:37 PM
scb

scb

3 likes in 15 posts.

Group: User

To Overlord.

Desktop: Distro: MX-23.4_x64 Libretto January 21 2024 base: Debian GNU/Linux 12 (bookworm)
Kernel: 6.1.0-27-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
SMathStudioDesktop.1_0_8253.Mono
HP Elitebook 840 G8.

mono --version:
Mono JIT compiler version 6.8.0.105 (Debian 6.8.0.105+dfsg-3.3 Wed Dec 14 11:18:08 UTC 2022)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: supported, not enabled.
Suspend: hybrid
GC: sgen (concurrent by default)

The latest mono SmathDesktop installs, but at once I get the message. "Unhandled exception has occurred in you application". It says:" \n\nA null reference or invalid value was found[GDI+ status:InvalidParameter)." and I am urged to quit, which I do!

The AppImage for Ubuntu don't run at all.

But this is not a problem, I am living happily with the 8253 version.
Søren
#10 Posted: 11/12/2024 10:39:58 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

As I have suspected, you are using Debian.
Debian or is derivatives has a Mono problem.
Not only Debian; Ubuntu, Mint, etc has this issue too.
And not limited to Smath, I encountered this for other programs also.
Their glibc and mono binaries giving some problems.

Fortunately, it has a solution.
You have to edit smathstudio_desktop_mono.
Just put export MONO_WINFORMS_XIM_STYLE=disabled command before exec.

Here is the links for discussion of solution;
https://en.smath.com/forum/yaf_postsm84311_SMath-in-Linux.aspx#post84311
https://en.smath.com/forum/yaf_postsm85676_SMath-Studio-on-Linux.aspx#post85676

Regards
1 users liked this post
Вячеслав Мезенцев 11/12/2024 11:38:00 PM
#11 Posted: 11/13/2024 1:05:44 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi Søren. Your geometry theory is more powerful than mine. Using your theorems, notation and coordinate system, this is a simplified version:

geom-scb-v3.sm (44 KiB) downloaded 50 time(s).

sol3.png

Best regards.
Alvaro.
1 users liked this post
Вячеслав Мезенцев 11/14/2024 12:29:00 AM
#12 Posted: 11/13/2024 2:22:34 PM
scb

scb

3 likes in 15 posts.

Group: User

Hi Alvaro.
Thank you for your revised algorithm, which I eventually will be able to test if I ever get the latest version of SmathStudio to work on my Linux.
Yours Søren
#13 Posted: 11/13/2024 2:23:43 PM
scb

scb

3 likes in 15 posts.

Group: User

To Overlord.

Your little fix did not work on my MXLinux. SmathStudio installs, but every time I try to load or save a file, SmathStudio stops and is showing the before mentioned message.
But I can easily live with the older version of SmathStudio, and I am not willing to change distribution, since I am very happy with MXLinux in every other respect.
Anyway - thank you for trying to help me out.

Yours Søren
#14 Posted: 11/13/2024 6:44:18 PM
francesco rapuano

francesco rapuano

12 likes in 38 posts.

Group: User

Hi Alvaro,

this is just a seek for clarification about your usage of the XY Plot because it is something new to me and it is very interesting .
To draw what is in the XY Plot module you write in Π a procedure that describe the steps needed to execute the drawing .
I was not aware that this was possible and moreover you use in Π the function gXY defined in the snippet area to execute/define some graphical primitives.
My question is where do you find info's that explain this method ? Can you add some detail on where this was documented in more detail ?
I apologize for these super newbie questions but as I stated initially is just for sake of learning something that looks to me very powerful and useful.

Thanks in advance for any help and best regards

Franco
#15 Posted: 11/13/2024 7:50:59 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

He creatively recycle examples from the first page of the description of the X-Y Plot component, which supports a several settings of tasks for drawing.

XYPlot. Examples.sm (30 KiB) downloaded 1677 time(s).
XYPlot. Examples.pdf (154 KiB) downloaded 1623 time(s).

XYPlot. Text labels.sm (10 KiB) downloaded 656 time(s).
XYPlot. Text labels.pdf (53 KiB) downloaded 575 time(s).

XYPlot. Draw shapes.sm (19 KiB) downloaded 895 time(s).
XYPlot. Draw shapes.pdf (92 KiB) downloaded 696 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
#16 Posted: 11/13/2024 10:06:40 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

Your little fix did not work on my MXLinux.


This could be happening because your mono version is very old.
Latest is 6.12 I guess. but if you don't need new versions that's ok.

mono.png

#17 Posted: 11/14/2024 1:18:44 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Ciao Franco. As Viacheslav says, I use the available elements according to their functionality. Also remember how line() works: it returns only the last value it has present, and can be used in many contexts, for example, in a table

line.png

TableWithLine.sm (6 KiB) downloaded 48 time(s).

Best regards.
Alvaro.

#18 Posted: 11/14/2024 1:36:20 AM
francesco rapuano

francesco rapuano

12 likes in 38 posts.

Group: User

Thanks a lot Uni and Alvaro for your suggestions.
In the aim of better learning of the xy Plot region features I am now reading again all the pages ( about 30 ) of this topic hoping that seeing the hystorical evolution of the PlugIn there is the possibility to improve the undertanding of its features and of the directions that is takeing the development of the new ones ( unlukily due to my ignorance I am starting to get lost with the new features previewed in the last posts about this topic ).

Thanks again and best regards

Franco
#19 Posted: 11/14/2024 4:19:34 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Minor code optimization. The number of primitives (Points) will be halved.
It makes sense to add a draw string for shapes.

geom-scb-v4.sm (44 KiB) downloaded 49 time(s).

xyplot-gXY-Point.png

geom-scb-v4.jpg
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Alvaro Diaz Falconi 11/14/2024 4:51:00 AM
#20 Posted: 11/14/2024 4:55:15 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

Minor code optimization. The number of primitives (Points) will be halved.
It makes sense to add a draw string for shapes.



Hi Viacheslav. Thanks, looks good.

Plugin less version, for instance, it works in live SMath: https://smath.com/en-US/cloud/worksheet/mCZMURm2

geom-scb-real-valued.sm (28 KiB) downloaded 45 time(s).

real.png

Best regards.
Alvaro.
  • New Posts New Posts
  • No New Posts No New Posts