Post Reply 
Question on Geom App
10-27-2014, 12:08 PM
Post: #1
Question on Geom App
Hello all

Why is_perpendicular() and his sister function is_orthogonal() do not give a result when dealing with segments whereas they do for lines?
Btw, why two functions for one single use ? Or do I miss something?
Find all posts by this user
Quote this message in a reply
10-29-2014, 09:55 AM
Post: #2
RE: Question on Geom App
is_perpendicular(segment(0,i),segment(0,1)) works, like for lines.
is_perpendicular and is_orthogonal are different in 3d geometry (not available on the Prime).
Find all posts by this user
Quote this message in a reply
10-29-2014, 12:14 PM
Post: #3
RE: Question on Geom App
Hello Bernard and thanks for your prompt answer.

My problem is the following, with entities defined below:
Two segments, GI and GH, each one defined by geometrical points.
angle(GI,GH) returns -90 (°, correct according to my drawing)
is_perpendicular(GI,GH) returns 0, instead of 1
is_orthogonal(GI,GH) returns 0, instead of 1
Same test on lines defined by same point returns 1.
Find all posts by this user
Quote this message in a reply
10-29-2014, 12:40 PM
Post: #4
RE: Question on Geom App
I can not answer without the full construction. It might be because of rounding errors (with numeric data) or because you are using symbolic data that are not automatically simplified in is_perpendicular.
If you want more info, try your figure with Xcas in a geometry 2d level, then use the Save commandlines in the Fig menu to save the commandline in a file and copy/paste the content of the file, that way I can easily reproduce the problem and help you (unfortunately the Prime does not provide a similar feature to save/restore a figure from commandlines, you must use Xcas for that).
Find all posts by this user
Quote this message in a reply
Post Reply 




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