Added missing in_place keywords in analysis.math

Added missing in_place keywords in analysis.math for issue #526.