Post by tsh73 on Jun 18, 2021 21:19:47 GMT
This is really happened Wednesday June 16 2021.
I was evaluating some student and he said he can draw (plot functions).
"Ok, draw me a star then"
"A star?"
"Yes, plot of a function consists from line segments, you just add the points"
And I told him about "x=r*cos(a):y=r*sin(a)" bit.
Now I *thought* I know what the star is
But apparently student worked to some other direction...
There happened to be another teacher nearby, and she said
"Let him do it his way"...
It happened afterwards that she know how to draw star as well
But it was another star
But it was getting apparent that student was getting nowhere
So we started talking
And figured out that he actually wanted to draw this
At this point, both teachers said "NO"
...
and the thing that finally was accepted happened to be this
Is it a star? Well, technically it is
(Wikipedia: en.wikipedia.org/wiki/Star_polygon)
This is probably an example of "decision by committee" - result that nobody liked :(
I was evaluating some student and he said he can draw (plot functions).
"Ok, draw me a star then"
"A star?"
"Yes, plot of a function consists from line segments, you just add the points"
And I told him about "x=r*cos(a):y=r*sin(a)" bit.
Now I *thought* I know what the star is
nomainwin
open "A star" for graphics_nsb_nf as #gr
#gr "home; down; posxy cx cy"
#gr "trapclose [quit]"
pi=acs(-1)
r=100
a0=0-pi/10 'really, trial and error
x=cx+r*cos(a+a0):y=cy+r*sin(a+a0)
#gr "place ";x;" ";y
for a = 0 to 4*pi step 4*pi/5
x=cx+r*cos(a+a0):y=cy+r*sin(a+a0)
#gr "goto ";x;" ";y
next
#gr "flush"
wait
[quit]
close #gr
end
But apparently student worked to some other direction...
There happened to be another teacher nearby, and she said
"Let him do it his way"...
It happened afterwards that she know how to draw star as well
But it was another star
r=100
a0=0-pi/10 'really, trial and error
x=cx+r*cos(a+a0):y=cy+r*sin(a+a0)
#gr "place ";x;" ";y
k=1
for a = 0 to 2*pi step pi/5
r=40+60*k 'actually more trial and error. 50/50 looks nice too
k = 1-k
x=cx+r*cos(a+a0):y=cy+r*sin(a+a0)
#gr "goto ";x;" ";y
next
But it was getting apparent that student was getting nowhere
So we started talking
And figured out that he actually wanted to draw this
r=100
a0=0-pi/10 'really, trial and error
for a = 0 to 2*pi step 2*pi/5
x=cx+r*cos(a+a0):y=cy+r*sin(a+a0)
#gr "home"
#gr "goto ";x;" ";y
next
At this point, both teachers said "NO"
...
and the thing that finally was accepted happened to be this
Is it a star? Well, technically it is
(Wikipedia: en.wikipedia.org/wiki/Star_polygon)
r=100
a0=0-pi/10 'really, trial and error
x=cx+r*cos(a+a0):y=cy+r*sin(a+a0)
#gr "place ";x;" ";y
for a = 0 to 2*pi step 2*pi/5
x=cx+r*cos(a+a0):y=cy+r*sin(a+a0)
#gr "goto ";x;" ";y
next
a0=pi/10
x=cx+r*cos(a+a0):y=cy+r*sin(a+a0)
#gr "place ";x;" ";y
for a = 0 to 2*pi step 2*pi/5
x=cx+r*cos(a+a0):y=cy+r*sin(a+a0)
#gr "goto ";x;" ";y
next
This is probably an example of "decision by committee" - result that nobody liked :(