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?
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...

Similar threads

Back
Top