Guest User

Untitled

a guest
Feb 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.40 KB | None | 0 0
  1. function bioMin(birthday)
  2.     x = birthday + 1;
  3.     while((fix(100 * sin(2 * pi * (x - birthday) / 23)) != 100) || \
  4.              (fix(100 * sin(2 * pi * (x - birthday) / 28)) != 100) || \
  5.              (fix(100 * sin(2 * pi * (x - birthday) / 33)) != 100))
  6.         x = x + 1;
  7.         if x == birthday + 200000,
  8.             break;
  9.         end
  10.     end
  11.     disp('Days: ');
  12.         days = x - birthday
  13.     disp('Years: ');
  14.         days / 365
  15. end
Add Comment
Please, Sign In to add comment