multiple arguments, variable arguments, default values
|
04-17-2021, 04:32 PM
(This post was last modified: 04-19-2021 05:14 PM by compsystems.)
Post: #2
|
|||
|
|||
RE: multiple arguments, variable arguments, default values
Testing the code in the simulator
QF(1,2,3) [enter] returns "Error: Invalid input" PHP Code: export parallelResistors_home( a, b, ... c ) 0.92307692308 > 1 / ( ½ + ¼ + 1/3) // ok parallelResistors_home( 2, 4 ) [enter] returns 1.33333333333...∞ > 1 / ( ½ +¼ ) exact(Ans) [enter] 4/3 parallelResistors_home( 1, 2, 4, 3, 5 ) [enter] returns 0.43795620438 > 1 / ( 1 + ½ + ¼ + 1/3 + 1/5 ) // ok PHP Code: #cas parallelResistors_cas(R_1, R_2, R_3) > 1 / ( (1/R_1) +(1/R_2)+1/R_3) ) > R_1*R_2*R_3 / (R_1*R_2 + R_1*R_3 + R_2*R_3) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
multiple arguments, variable arguments, default values - Wes Loewer - 04-17-2021, 01:11 PM
RE: multiple arguments, variable arguments, default values - compsystems - 04-17-2021 04:32 PM
RE: multiple arguments, variable arguments, default values - Wes Loewer - 04-17-2021, 05:59 PM
RE: multiple arguments, variable arguments, default values - cyrille de brébisson - 04-19-2021, 09:50 AM
RE: multiple arguments, variable arguments, default values - compsystems - 04-19-2021, 08:39 PM
|
User(s) browsing this thread: 1 Guest(s)