Oct-03-2019, 09:23 AM
Why in your example
Is there a way to concatenate list to float? I can't find anyone.
And it seems me the only way to achieve my gole, that is the vector:
and B = self.m_wf * (self.H_ev_wf_vec[2] - self.H_ev_wf_vec[1])
x = [1,2,3] for j in range(2): print(x) x = [x[0:j], x[j] + 5.0 / 2.5, x[j+1:]]the second output is not "[[1], 3.0, [2, 3]]"? The first number it should write is 1.
Is there a way to concatenate list to float? I can't find anyone.
And it seems me the only way to achieve my gole, that is the vector:
self.H_ev_hf_vec = [self.H_ev_ex_l_hf, self.H_ev_ex_l_hf + A / self.m_hf, (self.H_ev_ex_l_hf + A / self.m_hf) + B / self.m_hf, self.H_ev_su_v_hf]where A = self.m_wf * (self.H_ev_wf_vec[1] - self.H_ev_wf_vec[0])
and B = self.m_wf * (self.H_ev_wf_vec[2] - self.H_ev_wf_vec[1])