Lines Matching refs:lhs_real
179 mp_obj_t mp_obj_complex_binary_op(mp_binary_op_t op, mp_float_t lhs_real, mp_float_t lhs_imag, mp_o… in mp_obj_complex_binary_op() argument
188 lhs_real += rhs_real; in mp_obj_complex_binary_op()
193 lhs_real -= rhs_real; in mp_obj_complex_binary_op()
200 real = lhs_real * rhs_real - lhs_imag * rhs_imag; in mp_obj_complex_binary_op()
201 lhs_imag = lhs_real * rhs_imag + lhs_imag * rhs_real; in mp_obj_complex_binary_op()
202 lhs_real = real; in mp_obj_complex_binary_op()
215 lhs_real /= rhs_real; in mp_obj_complex_binary_op()
219 lhs_imag = -lhs_real / rhs_imag; in mp_obj_complex_binary_op()
220 lhs_real = real; in mp_obj_complex_binary_op()
236 mp_float_t abs1 = MICROPY_FLOAT_C_FUN(sqrt)(lhs_real * lhs_real + lhs_imag * lhs_imag); in mp_obj_complex_binary_op()
239 lhs_real = (rhs_real == 0); in mp_obj_complex_binary_op()
245 mp_float_t arg1 = MICROPY_FLOAT_C_FUN(atan2)(lhs_imag, lhs_real); in mp_obj_complex_binary_op()
249 lhs_real = exp_x3 * MICROPY_FLOAT_C_FUN(cos)(y3); in mp_obj_complex_binary_op()
256 return mp_obj_new_bool(lhs_real == rhs_real && lhs_imag == rhs_imag); in mp_obj_complex_binary_op()
261 return mp_obj_new_complex(lhs_real, lhs_imag); in mp_obj_complex_binary_op()