Thanks I found my error on my code
My new code is
00 { 32-Byte Prgm }
01▸LBL "VOL"
02 MVAR "V"
03 MVAR "W"
04 MVAR "L"
05 MVAR "H"
06 RCL "W"
07 RCL× "L"
08 RCL× "H"
09 RCL "V"
10 -
11 END
(01-08-2021 07:28 PM)Sylvain Cote Wrote:
Code:
formula → Length * Width * Height = Volume
f(x)=0 → ( Length * Width * Height ) — Volume = 0
Analysis of your program: (not working)
Code:
01▸LBL "VOL" // Volume calculation program
02 MVAR "V" // Volume
03 MVAR "W" // Width
04 MVAR "L" // Length
05 MVAR "H" // Height
06 STO "W" // overwriting W with X content with whatever it is
07 STO "L" // overwriting L with X content with whatever it is
08 STO "H" // overwriting H with X content with whatever it is
09 RCL "L" // X = Length (unknown value)
10 RCL "H" // X = Height (unknown value) & Y = Length (unknown value)
11 × // X = X * Y (unknown value)
12 RCL× "W" // X = X * Width (unknown value)
13 STO "V" // overwriting V with X content with whatever it is
14 RCL "V" // X = Volume (unknown value)
15 END // end of the program
Analysis of the user's manual program: (working)
Code:
01▸LBL "VOL" // Volume calculation program
02 MVAR "L" // Length
03 MVAR "W" // Width
04 MVAR "H" // Height
05 MVAR "V" // Volume
06 RCL "L" // X = Length // X = Length
07 RCL* "W" // X = X * Width // X = Length * Width
08 RCL* "H" // X = X * Height // X = Length * Width * Height
09 RCL- "V" // X = X - Volume // X = ( Length * Width * Height ) - Volume
10 END // end of the program
Solving: [yellow-key] [SOLVER] [VOL] 5 [L] 5 [W] 5 [H] [V]