Python Forum
Can Python be used for this????
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can Python be used for this????
#1
Can anyone tell me if this can be done in Python before I try to pursue this?

I need to be able to input two partially known factors each at 15 decimal places exactly and the product answer at 29 decimal places exactly. The beginning numbers (0.199848... and 4.97438...) of the two factors must remain unchanged during the program run. The zero's in each factor are what Python must work with and "numerically change". This "numerical change", when the factors are multiplied, must yield the product ‭0.99412293432154732337566954206 to 29 decimals and no less in order to match my product input. I would like to know what the final factors are along with the matching product once Python gets finished running.

Example:

My Input
Factor 1---> 0.199848000000000 ‭
Factor 2---> 4.974380000000000
Product ---> ‭0.99412293432154732337566954206

Output:
What the output should hopefully be --> 0.199848442087413 X 4.974384208042620 = ‭0.99412293432154732337566954206

So in conclusion, Python would find out what the factors must be to match my input of the known product ‭0.99412293432154732337566954206 that I gave it. I think Python might use a combination/permutation on the zero's until it finds a combination that yields the product I input.
Reply
#2
(Apr-08-2020, 06:30 PM)Jack_Ritter Wrote: Can anyone tell me if this can be done in Python before I try to pursue this?

if you know/can describe how to do it on paper with pencil (i.e. write the algorithm), then you can do it with python
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Forum Jump:

User Panel Messages

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