Post Reply 
How I can change the format of unit one DM42/Free42
01-08-2021, 07:28 PM (This post was last modified: 01-08-2021 07:37 PM by Sylvain Cote.)
Post: #27
RE: How I can change the format of unit one DM42/Free42
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, whatever it is
07 STO "L"     // overwriting L with X content, whatever it is
08 STO "H"     // overwriting H with X content, 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, 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] → 125

edit: typos
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How I can change the format of unit one DM42/Free42 - Sylvain Cote - 01-08-2021 07:28 PM



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