Post Reply 
Funny math problem to calculate the Pin Number for a credit card.
08-13-2021, 08:57 AM
Post: #11
RE: Funny math problem to calculate the Pin Number for a credit card.
It is well-known that the numerical integration in, I think, all its HP implementations (from 34C onwards) never evaluates the endpoints. Free42 and, by extension, the DM42 are such faithful simulators that they of course mimic that, too.
But I did try it out on a real 42S of course. No problem whatsoever.

Code:
00 { 41-Byte Prgm }
01▸LBL "FX"
02 MVAR "X"
03 RCL "X"
04 ENTER
05 STO ST Z
06 3
07 ×
08 1
09 -
10 ×
11 2
12 +
13 ×
14 4
15 -
16 X<>Y
17 X^2
18 3
19 LASTX
20 ×
21 -
22 2
23 +
24 SQRT
25 ÷
26 END

With ACC= 0.0001 I get -2.98125065973

Cheers, Werner

41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Funny math problem to calculate the Pin Number for a credit card. - Werner - 08-13-2021 08:57 AM



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