Python Forum
Parameterized math calculations?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parameterized math calculations?
#1
Question 
Is there a way to do maths in python that results in parameterized solutions?

For example 2a+3a = 5a

What I want to do is, to use an algorithm named as Runge-Kutta 4th order to the following differential equations

Y'(t) = -aY(t)E(t)
E'(t) = aY(t)E(t) - bE(t)
T'(t) = bE(t)

I know the values of E(t), Y(t), T(t) at any time t, but I need to find a and b.

In hand, I know how to do this. I just need to do 110 loops from 0 to 109 for each of the 3 diff equations. This will result in three
parameterized equations E(109), Y(109), T(109) that include the a and b. And then I need to solve a 3x2 system to
find a and b.

The problem is that in Python and any programming language, you can only calculate numbers. Not equations and
then solve a system...

Thank you!
Reply


Messages In This Thread
Parameterized math calculations? - by babaliaris - May-29-2022, 06:17 PM
RE: Parameterized math calculations? - by Larz60+ - May-29-2022, 08:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  math.log versus math.log10 stevendaprano 10 2,610 May-23-2022, 08:59 PM
Last Post: jefsummers
  Python, how to manage multiple data in list or dictionary with calculations and FIFO Mikeardy 8 2,783 Dec-31-2021, 07:47 AM
Last Post: Mikeardy
Photo Filtering data and precision during calculations Scientifix 0 1,832 Mar-30-2021, 01:00 PM
Last Post: Scientifix
  List calculations rturus 1 1,862 Mar-23-2021, 04:40 PM
Last Post: deanhystad
  Why getting ValueError : Math domain error in trig. function, math.asin() ? jahuja73 3 3,926 Feb-24-2021, 05:09 PM
Last Post: bowlofred
  Automation in calculations interdisciplinary 5 2,776 Dec-10-2020, 11:22 PM
Last Post: deanhystad
  Latitude&Longitude Calculations gdimit 3 3,895 Jan-30-2018, 07:47 AM
Last Post: buran
  Parameterized SQL query purnima1 1 4,625 Oct-10-2017, 03:08 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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