Geometry App, Distance, Intersections

09092019, 08:12 AM
(This post was last modified: 09122019 04:01 AM by Dirk.nl.)
Post: #1




Geometry App, Distance, Intersections
This post is based on the thread “find distance between intersections of circle and line”
This seemed like a nice thing to solve with the Geometry App. What I've done; Symb > GA line (y = (2 * x + 3)) Symb > GB circle (((x + 1) ^ 2 + y ^ 2) = 55) Symb > GC inter (GA,GB) (command intersections) The above was well displayed on the Plot page. Num > distance (GC) > Error: Bad Argument Hey, that's weird that "distance" can't calculate the distance between the two points of GC. GC has the value [point (val, val), point (val, val)] .... between square brackets, it’s a list. On the command line: VARS > App > Geometry > GC value also between square brackets. After I copied the GC value from command line to distance in the Geometry App and deleted the square brackets, distance could calculate the value. Conclusion; distance cannot calculate the distance between two points calculated with command intersections. Or distance must take into account the fact that the answer is between square brackets, that the answer is a list. Or am I doing something wrong myself? — Dirk Hartland 

09112019, 05:09 AM
Post: #2




RE: Geometry App, Distance, Intersections
That's expected, distance takes two arguments, and you provide one argument (the list of intersection points). You must convert the list to a sequence of arguments, this can be done with op(). For example
distance(op([point(1,2),point(3,4)])) 

09112019, 05:49 AM
(This post was last modified: 09122019 04:02 AM by Dirk.nl.)
Post: #3




RE: Geometry App, Distance, Intersections
Parisse, thank you for your answer!
Your explanation is clear, I actually thought that if intersections() calculate two points distance() should be able to understand / calculate. Too bad that op() is not mentioned in the Catalog (Tim / Cyrille?) You do not know if this command exists! I will immediately look in the document "Symbolic computing and Mathematics with the calculator HP Prime" Thanks! — Dirk Hartland 

09122019, 04:22 AM
Post: #4




RE: Geometry App, Distance, Intersections
I found the explanation of op() in document "Symbolic algebra and Mathematics with Xcas" under 4.50.11 and in iOS app PocketCAS (Giac/Xcas)
— Dirk Hartland 

09122019, 12:39 PM
Post: #5




RE: Geometry App, Distance, Intersections
(09122019 04:22 AM)Dirk.nl Wrote: I found the explanation of op() in document "Symbolic algebra and Mathematics with Xcas" under 4.50.11 and in iOS app PocketCAS (Giac/Xcas) Seems like a useful document, probably for many things like this. Can you share a link to wherever you found it? Bob Prosperi 

09122019, 01:22 PM
(This post was last modified: 09122019 07:44 PM by Dirk.nl.)
Post: #6




RE: Geometry App, Distance, Intersections
Hello rprosperi,
I hope this is the right side: http://wwwfourier.ujfgrenoble.fr/~pari...cascmd_en/ But I found this also in document “Symbolic computation and Mathematics with the calculator HP Prime. Just in the beginning of this document, I think part II, chapter 1 1.5 I believe you can found this document in https://wwwfourier.ujfgrenoble.fr/~par...me_cas.pdf A nice iOS app is PocketCAS — Dirk Hartland 

09132019, 03:25 AM
Post: #7




RE: Geometry App, Distance, Intersections
(09122019 01:22 PM)Dirk.nl Wrote: I believe you can found this document in https://wwwfourier.ujfgrenoble.fr/~par...me_cas.pdf Thanks Dirk! Bob Prosperi 

« Next Oldest  Next Newest »

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