Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function bioMin(birthday)
- x = birthday + 1;
- while((fix(100 * sin(2 * pi * (x - birthday) / 23)) != 100) || \
- (fix(100 * sin(2 * pi * (x - birthday) / 28)) != 100) || \
- (fix(100 * sin(2 * pi * (x - birthday) / 33)) != 100))
- x = x + 1;
- if x == birthday + 200000,
- break;
- end
- end
- disp('Days: ');
- days = x - birthday
- disp('Years: ');
- days / 365
- end
Add Comment
Please, Sign In to add comment