Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python for maths help
#1
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!!!
Reply
#2
What have you tried? You're much more likely to get a good reply if we see some effort on your part.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Maths problems Nick_oLay 3 1,956 Sep-26-2020, 08:41 PM
Last Post: perfringo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020