Make sure all symbols are defined and use #if to check math symbol availability