Post Reply 
Is RPN still relevant?
12-19-2023, 03:14 AM
Post: #37
RE: Is RPN still relevant?
(12-18-2023 01:50 PM)dm319 Wrote:  I know some numbers - 60km to get home, the car is running at around 30kwh/100km at the moment (yes I know not good!), 15% of a 64.7kwh battery left, and the app says I'm charging at 11kW. As I walked up to my office, I pulled out my phone with free42, and had a timer running for 55 mins before I got there.

If anyone can visualise that formula in their mind, and know how many preceding brackets to put into their algebraic calculator, then I salute you.

\[
\frac{\frac{30 \text{kWh}}{100 \text{km}} 60 \text{km} - \frac{15}{100} 64.7 \text{kWh}}{11 \text{kW}} \approx 0.75409 \text{h}
\]

I would enter this as:

(30/100*60-15/100*64.7)/11

Not too many parentheses, I guess.

However if I want to use a fancy Lisp like Clojure I'd use:

(/ (- (* (/ 30 100) 60) (* (/ 15 100) 64.7)) 11)
0.754090909090909

Don't be imitated by the many parentheses.
In the Replete app the results are stored in *1, *2, *3.
So you can do it a bit similar to how you would do that with RPN:

(* (/ 30 100) 60)
18

(* (/ 15 100) 64.7)
9.705

(- *2 *1)
8.295

(/ *1 11)
0.754090909090909

First I wondered how you ended up with 55 minutes because my result is only 45' 15".

But then I noticed that you wrote:
(12-18-2023 01:50 PM)dm319 Wrote:  I knew I needed a bit of a top up to get back home (…)

Thus I assume that our results agree.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Is RPN still relevant? - Matt Agajanian - 12-17-2023, 06:50 AM
RE: Is RPN still relevant? - Garth Wilson - 12-17-2023, 07:28 AM
RE: Is RPN still relevant? - ttw - 12-17-2023, 03:36 PM
RE: Is RPN still relevant? - Philk27 - 01-08-2024, 06:49 AM
RE: Is RPN still relevant? - Albert Chan - 12-17-2023, 04:29 PM
RE: Is RPN still relevant? - rprosperi - 12-18-2023, 02:02 AM
RE: Is RPN still relevant? - bxparks - 12-17-2023, 04:34 PM
RE: Is RPN still relevant? - cdmackay - 12-17-2023, 06:30 PM
RE: Is RPN still relevant? - Commie - 12-17-2023, 07:52 PM
RE: Is RPN still relevant? - Garth Wilson - 12-17-2023, 08:37 PM
RE: Is RPN still relevant? - Commie - 12-17-2023, 08:53 PM
RE: Is RPN still relevant? - Thomas Klemm - 12-17-2023, 07:23 PM
RE: Is RPN still relevant? - dm319 - 12-17-2023, 09:33 PM
RE: Is RPN still relevant? - ijabbott - 12-18-2023, 12:08 PM
RE: Is RPN still relevant? - bxparks - 12-18-2023, 03:18 PM
RE: Is RPN still relevant? - dm319 - 12-18-2023, 11:32 PM
RE: Is RPN still relevant? - Garth Wilson - 12-20-2023, 10:26 PM
RE: Is RPN still relevant? - cjsuk - 12-17-2023, 10:11 PM
RE: Is RPN still relevant? - Roberto Volpi - 12-18-2023, 05:28 AM
RE: Is RPN still relevant? - rprosperi - 12-18-2023, 01:21 PM
RE: Is RPN still relevant? - rprosperi - 12-18-2023, 10:53 PM
RE: Is RPN still relevant? - Philk27 - 01-08-2024, 07:11 AM
RE: Is RPN still relevant? - Thomas Radtke - 12-18-2023, 06:43 AM
RE: Is RPN still relevant? - carey - 12-18-2023, 07:56 AM
RE: Is RPN still relevant? - Garth Wilson - 12-18-2023, 09:23 AM
RE: Is RPN still relevant? - carey - 12-18-2023, 11:00 AM
RE: Is RPN still relevant? - dm319 - 12-18-2023, 01:50 PM
RE: Is RPN still relevant? - Peter Klein - 12-19-2023, 07:54 AM
RE: Is RPN still relevant? - Garth Wilson - 12-20-2023, 10:27 PM
RE: Is RPN still relevant? - carey - 12-20-2023, 01:24 AM
RE: Is RPN still relevant? - Garth Wilson - 12-20-2023, 10:24 PM
RE: Is RPN still relevant? - Siegfried - 12-19-2023, 05:39 AM
RE: Is RPN still relevant? - compsystems - 12-18-2023, 07:49 PM
RE: Is RPN still relevant? - avsebastian - 12-19-2023, 02:51 AM
RE: Is RPN still relevant? - Thomas Klemm - 12-19-2023 03:14 AM
RE: Is RPN still relevant? - Hans S. - 12-19-2023, 06:09 PM
RE: Is RPN still relevant? - Thomas Klemm - 12-19-2023, 03:38 AM
RE: Is RPN still relevant? - Thomas Klemm - 12-19-2023, 03:53 AM
RE: Is RPN still relevant? - Peter Klein - 12-19-2023, 07:42 AM
RE: Is RPN still relevant? - Peet - 12-19-2023, 07:50 PM
RE: Is RPN still relevant? - ctrclckws - 12-19-2023, 08:04 PM
RE: Is RPN still relevant? - dm319 - 12-19-2023, 08:31 PM
RE: Is RPN still relevant? - MikeSD - 12-20-2023, 05:04 PM
RE: Is RPN still relevant? - carey - 12-21-2023, 12:43 AM
RE: Is RPN still relevant? - bxparks - 12-22-2023, 07:11 PM
RE: Is RPN still relevant? - Voldemar - 12-22-2023, 09:16 PM
RE: Is RPN still relevant? - bxparks - 12-22-2023, 09:53 PM
RE: Is RPN still relevant? - Voldemar - 12-22-2023, 10:37 PM
RE: Is RPN still relevant? - bxparks - 12-22-2023, 11:01 PM
RE: Is RPN still relevant? - avsebastian - 12-28-2023, 12:41 AM
RE: Is RPN still relevant? - Steve Simpkin - 12-28-2023, 11:18 AM
RE: Is RPN still relevant? - twoweims - 12-28-2023, 10:55 PM
RE: Is RPN still relevant? - rprosperi - 12-21-2023, 01:27 PM
RE: Is RPN still relevant? - Garth Wilson - 12-22-2023, 03:49 AM
RE: Is RPN still relevant? - Peter Klein - 12-22-2023, 05:22 AM
RE: Is RPN still relevant? - 3298 - 12-23-2023, 11:36 PM
RE: Is RPN still relevant? - dm319 - 12-24-2023, 11:32 AM
RE: Is RPN still relevant? - ijabbott - 12-24-2023, 04:28 PM
RE: Is RPN still relevant? - Peet - 12-23-2023, 11:44 PM
RE: Is RPN still relevant? - dm319 - 12-21-2023, 07:06 PM
RE: Is RPN still relevant? - Peet - 12-21-2023, 07:48 PM
RE: Is RPN still relevant? - polbit - 12-22-2023, 01:55 AM
RE: Is RPN still relevant? - dm319 - 12-22-2023, 08:20 AM
RE: Is RPN still relevant? - Siegfried - 12-23-2023, 07:45 AM
RE: Is RPN still relevant? - Voldemar - 12-23-2023, 10:30 AM
RE: Is RPN still relevant? - Thomas Klemm - 12-23-2023, 12:14 PM
RE: Is RPN still relevant? - cdmackay - 12-23-2023, 08:22 PM
RE: Is RPN still relevant? - Steve Simpkin - 12-24-2023, 12:52 AM
RE: Is RPN still relevant? - cdmackay - 12-25-2023, 01:00 AM
RE: Is RPN still relevant? - avsebastian - 12-28-2023, 12:50 AM
RE: Is RPN still relevant? - trojdor - 12-28-2023, 01:15 AM
RE: Is RPN still relevant? - cjsuk - 12-28-2023, 10:16 AM
RE: Is RPN still relevant? - Thomas Klemm - 12-29-2023, 12:57 PM
RE: Is RPN still relevant? - Thomas Klemm - 01-09-2024, 06:01 PM



User(s) browsing this thread: 5 Guest(s)