How do I learn RPL and solve this problem with it?
|
09-25-2017, 08:27 PM
Post: #23
|
|||
|
|||
RE: How do I learn RPL and solve this problem with it?
(09-25-2017 06:36 PM)mfleming Wrote: Hi guys, I agree, there's 4 or 5 valid values, no need to precompute anything. The basic tasks can be broken into:
Note that 1, 2 and 4 are basically the same, lookup the E12 resistor given a value, but in one case get the lower bound, in the other the upper and the third is closest match. Perhaps a single routine can handle all 3 cases. Task #3 can also reuse the same routine, since the next valid resistor would be the closest match to R*1.211 (with R being a valid E12 resistor). That's the simplest way I see it. And that's not taking anybody by the hand, as each task is a project on itself. So the first goal would be a routine that given any value, finds the lower, upper and closest match in the E12 series. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)