another graph pattern


Please login or register to vote for this query.

(click on this box to dismiss)

Motor Vehicle Maintenance and Repair Meta

Q&A about the site for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles

create table #out (x float, label varchar(20), y float)
declare @x float, @y float, @c int

set @c = 1
set @y = 0
while @y <= 2925
  set @x = sin(.5*cos(@y))
  insert into #out (x,label,y) values (@x, 'c'+convert(varchar,@c) , @y)  --replicate(' ',@c) 
    set @y = @y + 0.1
    if @c=10 set @c=1 else set @c=@c+1

select * from #out

Enter Parameters

Switch to main site
loading Hold tight while we fetch your results