sinc.fun 801 B

123456789101112131415161718192021222324252627282930313233
  1. #import std
  2. #import nat
  3. #import plo
  4. #import flo
  5. #import ren
  6. boxen =
  7. <.left_lit_rendering,right_lit_rendering,back_lit_rendering>/('ohs+',(~&iiX div\2. plus/1. sqrt 5.)) visualization[
  8. picture_frame: ((200.,200.),(0.,0.)),
  9. margin: 0.,
  10. headroom: 0.,
  11. abscissa: axis[hats: <'',''>,hatches: <-10.,10.>],
  12. pegaxis: axis[hats: <'',''>,hatches: <-10.,10.>],
  13. ordinates: <axis[hats: <'',''>,hatches: <-0.1,1.>]>,
  14. curves: curve$[peg: ~&hl,points: * ^/~&r math..hypot; zeroid?/1.! div^\~& sin]* |=&l ~&iiK0 ari31/-10. 10.]
  15. #output dot'tex' ~&
  16. sinc =
  17. -[\begin{tabular}{cc}
  18. \toprule
  19. light source &\hspace{20pt} visual effect\\
  20. \midrule
  21. -[
  22. (--<'\\[-30pt]'>^|C/~& :/'&')*= ~&p/<'left','right','back'> (:/'$\begin{array}[c]{c}'+* --<'\end{array}$'>) boxen
  23. ]-
  24. \\
  25. \bottomrule
  26. \end{tabular}
  27. ]-