Hi everyone,
Very new to python and just need some help with this assignment question.
I am using Jupyter notebook. The question is as follows:
" The current i is proportional to the concentration c
i=ca+b
Write a function currents that takes a list of concentrations c (provided as an np.array object) a coefficient a and an offset b, and returns a list of currents. Note that the offset b is included as an empirical parameter that can account for current due to impurities in the solvent. [5 points]"
The data is
(first column is concentration and other values are current.)
[ 2. 3.91 3.1 2.97 2.91]
[ 4. 6.32 6.95 6.59 5.42]
[ 6. 9.63 9.22 11.18 10.36]
[ 8. 11.72 12.65 12.76 11.42]
[10. 14.84 15.19 18.45 16.79]
[15. 22.64 25.35 22.76 24.24]
[20. 29.74 32.11 30.63 29.75]
[25. 38.7 38.58 39.06 40.55]
[30. 45.67 47.36 45.47 47.23]]
Please please any ideas would be so appreciated!!!
Very new to python and just need some help with this assignment question.
I am using Jupyter notebook. The question is as follows:
" The current i is proportional to the concentration c
i=ca+b
Write a function currents that takes a list of concentrations c (provided as an np.array object) a coefficient a and an offset b, and returns a list of currents. Note that the offset b is included as an empirical parameter that can account for current due to impurities in the solvent. [5 points]"
The data is
(first column is concentration and other values are current.)
[ 2. 3.91 3.1 2.97 2.91]
[ 4. 6.32 6.95 6.59 5.42]
[ 6. 9.63 9.22 11.18 10.36]
[ 8. 11.72 12.65 12.76 11.42]
[10. 14.84 15.19 18.45 16.79]
[15. 22.64 25.35 22.76 24.24]
[20. 29.74 32.11 30.63 29.75]
[25. 38.7 38.58 39.06 40.55]
[30. 45.67 47.36 45.47 47.23]]
Please please any ideas would be so appreciated!!!