Re: Some basic Help
- To: mathgroup@smc.vnet.net
- Subject: [mg12355] Re: [mg12314] Some basic Help
- From: silvi@cinenet.net (Silvia Heubach)
- Date: Sun, 10 May 1998 02:04:36 -0400
I don't knoe how you construct your random triangles, maybe by just creating three random points. Here is my suggestion for the Mathematics, without any Mathematica code: Create two random points. They define a line, and you can draw a line through one of the endpoint that is perpendicular (slope of second line is -1/slope of first line). The point and the slope give you an equation. Pick a random x-value and compute its corresponding y-value. This gives you the third point in a right triangle. Silvia Heubach >Hello! > >Does anyone have any suggestions for generating Random RIGHT triangles. >I found a way to generate random triangles through the PLOT command, >but do not know how to generate right ones. > >Please email me w/ help. Thanks