4/27/2012 9:10 PM | |
Joined: 3/18/2008 Last visit: 12/8/2023 Posts: 1750 Rating:
|
Dear Sofia, Please find herewith attched library Block called POW FC1. Just copy this block to your program folder and then used it as many times as you want. Hope this will helps. AttachmentLibrary.zip (715 Downloads) |
Last edited by: Amit_86 at: 4/27/2012 9:11 PMVANDE MATARAM..... |
|
4/28/2012 8:33 AM | |
Posts: 16 Rating:
|
Dear Amit: I have seen the math library functions, they give correct results. But i want to know what is the bug in my program. Regards: |
4/28/2012 8:41 AM | |
Posts: 16 Rating:
|
Dear Marcjan: I have tried RND- function but the problem is not solved. Can you fix the bug in my program and suggest some change in my code. Regards: |
4/28/2012 10:20 AM | |
Joined: 7/18/2011 Last visit: 10/9/2023 Posts: 521 Rating:
|
Hi sofia, Another option is to use modules from the OSCAT library. www.oscat.de Kind regards, BV |
5/1/2012 2:34 PM | |
Joined: 1/3/2006 Last visit: 2/19/2024 Posts: 726 Rating:
|
Or you can use something like this: [code] //if "y" <= 1.0 then transfer 1.0 to "z" L "y" L 1.000000e+000 <R JC m2 //start multiplying L "x" L "y" RND m1: T #counter1 TAK L "x" *R T "z" L #counter1 LOOP m1 //following devision is required to adjust for one extra loop ! L "z" L "x" /R T "z" JU m3 m2: L 1.000000e+000 T "z" m3: NOP 0 [/code] Attachmentpwr.pdf (331 Downloads) |
Last edited by: manmeet at: 5/1/2012 2:40 PMI have no idea why code is appearing so bad, so I have attached it in pdf file Last edited by: manmeet at: 5/1/2012 2:37 PMLast edited by: manmeet at: 5/1/2012 2:36 PMLast edited by: manmeet at: 5/1/2012 2:35 PM |
|
Follow us on