11/15/2023 7:53 PM | |
Joined: 11/15/2023 Last visit: 11/16/2023 Posts: 3 Rating: (0) |
Do you have any ideas to do a program that calculates the square root of [sqrt(a^2+b^2+c^2)] analog inputs 0-20 ? I managed to do something like this but only on 0-10 above it crashes (attachment) maybe something like making two separate ones and then combining them there must be at least 1 decimal any ideas would help, thanks in advance ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 11/16/2023 08:24:22New subject after splitting |
|
11/15/2023 7:58 PM | |
Joined: 12/18/2014 Last visit: 8/6/2024 Posts: 33498 Rating: (4162)
|
It's better you upload your program instead a bad quality screenshot ... |
11/15/2023 8:08 PM | |
Joined: 11/15/2023 Last visit: 11/16/2023 Posts: 3 Rating: (0) |
or there are lsc but on mega because on forum i cannot attach .lsc [snip] AttachmentFiles.zip (340 Downloads) |
Last edited by: Jen_Moderator at: 11/16/2023 08:26:57Link removed and all files added as .zip file. |
|
11/15/2023 8:10 PM | |
Joined: 12/18/2014 Last visit: 8/6/2024 Posts: 33498 Rating: (4162)
|
Upload the program as a ZIP file not as a PDF ... |
11/15/2023 8:12 PM | |
Joined: 11/15/2023 Last visit: 11/16/2023 Posts: 3 Rating: (0) |
AttachmentZadanie_1.zip (374 Downloads) |
11/16/2023 4:13 PM | |
Joined: 12/18/2014 Last visit: 8/6/2024 Posts: 33498 Rating: (4162)
|
In your program you have 3 analog inputs whose maximum value is 20. Then you square the value, so a maximum of 400. You haven't written why you do this. I'm attaching a program from the user Scorp from the German-language forum to this post. AttachmentSQRT_FS4.zip (416 Downloads) |
Follow us on