	character*1 ans
	write(6,*)'   is this a repeat (Y or N)?'
	read(6,1000)ans
1000	format(a)
		if(ans.eq.'y' .or. ans.eq.'Y')then
		read(7,*)rs,rb,rp,fact
		write(6,*)'   number of points?'
		read(6,*)inum
		else
		write(6,*)'small radius-large radius-point
	1 radius-rotatiom factor-number of points?'
		read(5,*) rs,rb,rp,fact,inum
		write(7,*)rs,rb,rp,fact
		endif
	call plots(6,1,11)
	change=asin(1.0)/10.
	beta=0.0
	alpha=0.0
	call plot(5.,4.5,-3)
	ruo=rb+rp-rs
	rd=rb-rs
		do i=1,inum
		y1=rd*sin(beta)
		x1=rd*cos(beta)
		y2=rp*sin(alpha)
		x2=rp*cos(alpha)
		x=x1+x2
		y=y1+y2
		if(i.eq.1)call plot(x,y,3)
		call plot(x,y,2)
		beta=beta+change
		alpha=-(rb/rs-1)*change*fact+alpha
		enddo
	call tsend
	call trans(22,24)
	call lib$set_cursor(22,1)
	write(6,2000) inum
2000	format(' number of points:',i10)
	call lib$set_cursor(23,1)
	call plt$dmp
	call plot(0.,0.,99)
	call trans(1,24)
	call exit
	end
