Calculators Undetermined variable input for the ti89

  • Thread starter Thread starter Yottavolt
  • Start date Start date
  • Tags Tags
    Input Variable
AI Thread Summary
To create a function that calculates the equivalent resistance of multiple resistors in parallel, the focus is on allowing an undetermined number of arguments. The recommended approach is to use a list to pass the resistor values. In Python, this can be achieved by defining the function with a parameter that accepts a variable number of arguments, such as using *args. The formula for calculating the total resistance is 1 divided by the sum of the reciprocals of each resistor value. This can be implemented by iterating through the list of resistors and applying the formula. Additionally, users can be prompted to input resistor values in a loop, which can then be converted into a list for calculation. This method provides flexibility in handling any number of resistors efficiently.
Yottavolt
Messages
2
Reaction score
0
I'm trying to create a function that will calculate any amount of resistors in parallel but I do not know how to allow an undetermined amount of arguements for input (rather than a fixed amount). Basically it would look like this pll(R1,R2,R3,Rn) where Rn would be anything from R2 to R1000 or whatever. The equation is 1/(1/R1 + 1/R2 + 1/R3 + 1/Rn).
 
Computer science news on Phys.org
Either use a list as an argument, or ask the user to input resistors in a loop
 
How do I use a list as an argument?
 
I came across a video regarding the use of AI/ML to work through complex datasets to determine complicated protein structures. It is a promising and beneficial use of AI/ML. AlphaFold - The Most Useful Thing AI Has Ever Done https://www.ebi.ac.uk/training/online/courses/alphafold/an-introductory-guide-to-its-strengths-and-limitations/what-is-alphafold/ https://en.wikipedia.org/wiki/AlphaFold https://deepmind.google/about/ Edit/update: The AlphaFold article in Nature John Jumper...
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...

Similar threads

Back
Top