geometry - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Geometry : 2-D Euclidean : Point Functions : geometry/randpoint

geometry

  

randpoint

  

generate a random point on a line or a circle

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

randpoint(w, u, v)

Parameters

w

-

the name of a random point

u

-

line, circle, or range

v

-

range

Description

• 

The output is a point with coordinates in the given range or lying on the  given line or circle.

• 

The command with(geometry,randpoint) allows the use of the abbreviated form of this command.

Examples

withgeometry:

linel,xy=1,x,y,circlec,x2+y2=1,x,y:

randpointP,1..2,1..2

P

(1)

coordinatesP

0.314058468,1.880696710

(2)

randpointQ,l,2..3

Q

(3)

coordinatesQ

0.190097447,0.809902553

(4)

randpointR,c

R

(5)

coordinatesR

 [1. cos(.8760389788 Pi), 1. sin(.8760389788 Pi)]

See Also

geometry[point]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam