Hey Duh
Long time, No see
It's been a long day but see if this is in the neighborhood of being right
Option Explicit
Public Sub CMDRDUH()
Dim pl As AcadLWPolyline
Dim lowbound As Double
Dim upbound As Double
Dim step As Double
Dim e As Double
Dim pi As Double
Dim i As Double
Dim k As Integer
Dim coords() As Double
Dim start As Integer
Dim finish As Integer
start = 0
e = 2.7182818284
pi = 3.14159265
lowbound = 0
upbound = pi * 2
step = 0.01
finish = (upbound - lowbound) / step
ReDim coords(finish * 2 + 1)
i = 0: k = 0
For i = lowbound To upbound Step step
coords(k) = i
k = k + 1
coords(k) = 0.5 * (e ^ i + e ^ -1)
'coords(k) = Sin(i)
k = k + 1
Next i
Set pl = ThisDrawing.ModelSpace.AddLightWeightPolyline(coords)
End Sub