Week 8 - Oct.23rd

TODO for this week

1. fix Latex Reflection and Simulation from previous meeting

2. add detailed calculation part for triangle reflection

3. change triangle input parameter from a,b to alpha - done.

4. write another wrapper function to take theta out of previous simulation as theta in for next reflection. - close to done, have bug

5. rootSolve, multiroot should work under assumption that we always have equation for the boundaries, which we do.

later we can try when incoming vector is not straight line

6. bar reflection - done

To Discuss

  • write reflection as separate function, or sort of one but can set different mode, or separate files

reflect( r for circle/alpha for triangle/ bh ration for bars, theta_in, x, mode = 'triangle', 'circle', 'bar)

  • next shape to be random among circle, bar, and triangle? what will happen
  • ** calculate theta_out, need to add pi if negative. new theta_in = pi-theta_out, not working

More TODO

Code:

  • check function: angle between 0 and pi, radius>1/2, non-negative values
  • animation
  • calculate escape time

Latex:

  • add pictures - long term project

Delay

  • work on when r<1/2, use straight line for part that circles not intersect

Discussed during meeting Oct.23rd

  • Fixed theta_out and theta_in. Multi simulation works now
  • Will calculate escape time as next step
  • Refactor code to put boundaries, normal vectors and so on to list, so we can specify mode and put everything to one file and reuse most chunks of code.
  • add rootSolve