Question: Using C++ or python to show bisection, if possible can you show the Newton method using C++? The discharge voltage of a Li-ion battery can
Using C++ or python to show bisection, if possible can you show the Newton method using C++?
The discharge voltage of a Li-ion battery can often be described by the following equation t V(E) = E Rol R$1(1-e Bici) R21(1-e e ) t R1C1 = R 1 e R2C2 - Voet > where E, Ro, R1, R2, C1, C2, V., and t are some parameters that depend on the properties of the battery (i.e. on the materials that were used to build the battery and on the manufacturing process), I is the value of the discharge current (in Amps), and t is the time (in seconds). Assume that: E = 3.2 V, R. 10 12, R1 = 512, R2 100 2, C1 = 0.1 F, C2 1 F, V. = 1 V, and I = 100 hours. For how many hours can the battery be discharged continuously at 1 mA? = = > Note: we assume that a battery is discharged when the discharge voltage V(t) becomes 70% of the open circuit voltage E. That means you need to solved the following nonlinear equation for t: V(t) = 70% V(0) Write code to solve this equation by using: 1) the bisection method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
