The error suggests that s and mu are the results of some calculations, yet I can’t see what is wrong with the code.
What do mu_start and s_start look like? Are they scalar values?
N.B. the code formatting tool works differently if you select multiple lines before using it.