MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: programming competition


In the following oneliner for Xah Lee's programming competition [mg 4847],
test is the row of points (which may be in any R^n) and len the value of
maxLength.

Flatten[ (Table[ #[[1]] + i (#[[2]] - #[[1]]),
{i, 0, 1, len/Sqrt[(#[[2]]-#[[1]]).(#[[2]]-#[[1]])]} ]&) /@
Partition[test, 2, 1], 1 ]

Fred Simons
Eindhoven University of Technology

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Differential equations
  • Next by Date: Re: optimal control
  • Previous by thread: Differential equations
  • Next by thread: Re: Re: programming competition