Deakstadieđáhus: Polynomial methods in optimal control and filtering