Python Forum
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Computation
#1
I have an array

A=[1,2,0,3]
B=[10,11,12,13]
X=[5,6,4,3]

and two constants
a=0
b=1
I want to write a program which can compute the above values with defined formula and print each value separately
c=(a+(X-A)*(b-a))/(B-A)
Reply
#2
Take a look to numpy it allows you to do exactly that.
Good luck with your homework!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  "Plotting and Computation of Logistic Function by Using Taylor Series with Recursive canatilaa 1 1,875 May-13-2020, 04:01 PM
Last Post: jefsummers
  Computation Graphs aytgeren 1 1,921 May-02-2019, 06:15 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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