C
L
O
S
E
|
This file is personal home work. Output
may contain error. Please verify first.
2009-01-22-19-42 begin
2008-11-03-20-15 click purchase button
2008-11-06-13-11 receive book
The Cauchy-Schwarz Master Class
J. Michael Steele
University of Pennsylvania
ISBN 978-0-521-54677-5
2008-11-15-10-20 read to page 56, equation 4.5
line x=[x1,x2,x3] pass [0,0,0]
eye-point v=[v1,v2,v3] pass [0,0,0]
point on line x and most close to v is
p(v)=x*<x,v>/<x,x>
in which <a,b> is vector dot product.
There three motivation to write eyefoot2.htm
1. Read eqn. 4.5 find foot of perpendicular of
one point to a line. Equation is in hand.
2. I need to calculate and find foot of
perpendicular. example (Chinese page)
http://freeman2.com/tutc0005.htm#a00b20
(click the button marked '9712022054'
points 'L' and 'J' are foot of
perpendicular. I hand calculate at
that writing time.)
3. Around 2009-01-28 I paid attention that
http://freeman2.com/curve3d2.htm
has ten examples, but none of them is
straight line. Science major reader can
find straight line equation easily, but
other reader may have trouble to find
the easiest straight line equation. I
need to provide an example. (9801301628)
2009-01-18-21-37 begin write foot of
perpendicular program. (Chinese version)
This file URL
http://freeman2.com/eyefoot2.htm
File name
'eye' represent point is space. come from
http://freeman2.com/curve3d2.htm
Program use variable vp for eye point.
'v' in 'vp' come from ISBN 978-0-521-54677-5
page 56, equation 4.5, vector v
'p' in 'vp' means 'point'
Although 'vp' no 'eye' in it, but eye point
box use I00, I01. This 'I' means 'eye'.
Straight line equation box name E00; E01; E02
'E' means 'equation'.
'foot' in eyefoot2.htm means foot of
perpendicular.
I need to solve 2D problem, page 56, eqn. 4.5
is valid for 3D, 4D ... Use for loop to solve
2D and 3D problem, why not include 4D and higher?
This program set upper limit to 12D. 12D is
an arbitrary limit. 4D already no practical
application chance. 12D is out of reach.
Higher dimension is just for pure math reason.
3D straight line example is next
parametric equation 1: x(t) 3*t+1
parametric equation 2: y(t) t*8.2-2
parametric equation 3: z(t) -t+3.6
In which 't' is independent variable. 't' can
be only zeroth power (constant) or first power.
't' can not be second power. Because t*t is not
a straight line.
Program not allow to put 't' into math function
parametric '(...)' area. Because no math function
is a straight line.
'3' in 3*t+1 represent t change rate relative
to coordinate axis one.
'+1' in 3*t+1 represent parallel displacement
amount. Straight line equation must be
slope*t + constant
Program refuse 3*t*t
Program refuse sin(t)
-1.2-5.0*(t-2) is a reasonable straight line
equation. But this program can not expand
'-5.0*(t-2)' to '-5.0*t' and '+5.0*2'
this program can not handle some reasonable
straight line equation. Need user to cooperate
and use simple equation.
+1.6-4.*t+t*2.2-sin(1.5) is a reasonable
straight line equation. sin(1.5) is just
a constant. sin(1.5) not contain 't'.
Program accept sin(1.5)
-4.*t+t*2.2 has a little trouble.
-4.*t pre-multiply '-4.'
t*2.2 post-multiply '2.2'.
Found solution for it. Now it is OK.
After done, tested few 2D problem, Output
look ok. If there is trouble equation,
I did not see it and I can not solve it
now. I will make correction in the future.
If you suspect error output. Please read box1
and box2 debug output. Those data will help
you to locate trouble point.
Thank you for using eyefoot2.htm
Freeman 2009-01-22-20-35
2009-01-30-17-06 translate here.
This file is personal home work. Output
may contain error. Please verify first.
2009-01-30-18-29 translate begin
2009-01-24-13-20 begin
2009-01-23-17-52 write "Please help me build equation"
start from 2009-01-23-17-52
to 2009-01-24-09-52 create code help build
straight line equations.
2009-01-23 write 2D equation code
2009-01-24 write 3D equation code
2009-01-24-12-50 include code from
http://freeman2.biz/a1/dx880101.htm
to eyefoot2.htm
Purpose is to calculate the distance between
eye point and foot point. Make sure this
distance is shortest. When user click
"foot of perpendicular" button, program
auto write code to box 3, user click [click here]
button, output to box 4 bottom.
Key point is allow user to change value of
tiny0.
tiny0=0.0 should get shortest distance.
tiny0=0.001 and tiny0=-0.001 get longer one.
2009-01-24-13-31 stop
2009-01-27-18-21 begin
Today, 2009-01-27 write "create simple equation"
add [x=t], [y=t], [z=t] button.
for example button [x=t] create simple line
equation.
y(x)=3*x-5
to simple parametric equation
x=t
y(t)=3*t-5
no need complicate equation.
x(t)= -0.25*t+(0.5)
y(t)= -0.75*t+(-3.5)
2009-01-27-18-29 stop
This file is personal home work. Output
may contain error. Please verify first.
2009-02-01-13-46 start
On 2009-02-01-12-10 open
http://www-stat.wharton.upenn.edu/~steele/Publications/Books/CSMC/CSMC_index.html
read
[[
Finally, if you have a web page that deals
with inequalities (or problem solving, or
mathematical coaching), please add a link
to this page. I'll happily reciprocate.
In the era of Google, one lives or dies
by links. Also, by learning that someone
actually reads these pages, I'll have more
incentive to keep scanning and posting more
classics.
]]
Since this page
http://freeman2.com/eyefoot2.htm
receive equation from Professor J. Michael Steele
book. Professor Steele ask for link, On 2009-02-01
I made a link at top of this page.
2009-02-01-13-53 Stop
2009-02-01-14-23 start
When you check this program, please do NOT
rely upon the output message
[[
foot to eye vector dot with line vector should be zero:
5.329070518200751e-15
]]
Because if this program read line equation
coefficient wrong, then program solve another
problem. Another problem get vectors dot equal
to zero, it has no help.
2009-02-01-14-27 stop
|