Home
last modified time | relevance | path

Searched refs:rhs_imag (Results 1 – 1 of 1) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dobjcomplex.c180 mp_float_t rhs_real, rhs_imag; in mp_obj_complex_binary_op() local
189 lhs_imag += rhs_imag; in mp_obj_complex_binary_op()
194 lhs_imag -= rhs_imag; 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()
211 if (rhs_imag == 0) { in mp_obj_complex_binary_op()
218 mp_float_t real = lhs_imag / rhs_imag; in mp_obj_complex_binary_op()
219 lhs_imag = -lhs_real / rhs_imag; in mp_obj_complex_binary_op()
222 mp_float_t rhs_len_sq = rhs_real * rhs_real + rhs_imag * rhs_imag; in mp_obj_complex_binary_op()
224 rhs_imag /= -rhs_len_sq; in mp_obj_complex_binary_op()
[all …]

Completed in 3 milliseconds