4.25 How to find parameters such as \(\pi \) in an expression?

Use

restart; 
expr:=4*Pi+sin(x); 
indets(expr,And(name,constant)) 
 
        {Pi}