original_docstring: Find the value for A_P0^c that has the same arc length for the first bay
         as for the parent.
docstring: Find the value for A_P0^c that has the same arc length for the first bay
  as for the parent.
docstring_tokens: Find the value for A_P0^c that has the same arc length for the first bay as for the parent .
code: def calculate_A0_moving_LE(psi_baseline, psi_goal_0, Au_baseline, Au_goal, deltaz,
                         c_baseline, l_LE, eps_LE):
      """Find the value for A_P0^c that has the same arc length for the first bay
         as for the parent."""
      
      def integrand(psi_baseline, Al, deltaz, c ):
          return c*np.sqrt(1 + dxi_u(psi_baseline, Al, deltaz/c)**2)
      
      def equation(A0, L_baseline, Au_goal, deltaz):
          Au_goal[0] = A0
          c = calculate_c_baseline(c_P, Au_goal, Au_baseline, deltaz/c_P, l_LE, eps_LE, psi_spars[0])
          y, err = quad(integrand, 0, psi_goal_0, args=(Au_goal, deltaz, c))
          print('y', y, y - (1-eps_LE)*L_baseline, A0, c)
          return y - (1-eps_LE)*(L_baseline - c*l_LE)
      L_baseline, err = quad(integrand, 0, psi_baseline[0], args=(Au_baseline, deltaz, 
                                                           c_baseline))
  
      with warnings.catch_warnings():
          warnings.simplefilter("ignore")
          y = fsolve(equation, Au_goal[0], args=(L_baseline, Au_goal, deltaz))
      return y[0]
code_tokens: def calculate_A0_moving_LE ( psi_baseline , psi_goal_0 , Au_baseline , Au_goal , deltaz , c_baseline , l_LE , eps_LE ) : def integrand ( psi_baseline , Al , deltaz , c ) : return c * np . sqrt ( 1 + dxi_u ( psi_baseline , Al , deltaz / c ) ** 2 ) def equation ( A0 , L_baseline , Au_goal , deltaz ) : Au_goal [ 0 ] = A0 c = calculate_c_baseline ( c_P , Au_goal , Au_baseline , deltaz / c_P , l_LE , eps_LE , psi_spars [ 0 ] ) y , err = quad ( integrand , 0 , psi_goal_0 , args = ( Au_goal , deltaz , c ) ) print ( 'y' , y , y - ( 1 - eps_LE ) * L_baseline , A0 , c ) return y - ( 1 - eps_LE ) * ( L_baseline - c * l_LE ) L_baseline , err = quad ( integrand , 0 , psi_baseline [ 0 ] , args = ( Au_baseline , deltaz , c_baseline ) ) with warnings . catch_warnings ( ) : warnings . simplefilter ( "ignore" ) y = fsolve ( equation , Au_goal [ 0 ] , args = ( L_baseline , Au_goal , deltaz ) ) return y [ 0 ]
short_docstring: Find the value for A_P0^c that has the same arc length for the first bay
  as for the parent.
short_docstring_tokens: Find the value for A_P0^c that has the same arc length for the first bay as for the parent .
comment: """Find the value for A_P0^c that has the same arc length for the first bay
         as for the parent."""