7/5/2013 1:44 PM | |
Joined: 1/28/2009 Last visit: 1/8/2025 Posts: 6858 Rating: (1366) |
Hello, Can you try use :X^N:= {EXP( N*(LNX))} exponentiel with the prog listBest regards Hamid Hosseini |
Last edited by: hdhosseini at: 7/5/2013 1:47 PMLast edited by: hdhosseini at: 7/5/2013 1:44 PM |
|
7/5/2013 5:07 PM | |
Joined: 9/27/2006 Last visit: 1/15/2025 Posts: 12328 Rating: (2699) |
Hello iad; I can suggest you look at the Open-Source functions for S7 provided by OSCAT.de. They have a range of functions for complex numbers (and a COMPLEX datatype for such operations)available, such as 7.24. CSQRT Type Function: REAL Input X: COMPLEX (Input) Output REAL (result) CSQRT calculates the square root of a complex number This is from version 3.3 of the OSCAT library basic documentation, you can look it up on the web, and also download the oscat_basic_s7 functions, v. 3.32. http://www.oscat.de/downloadmanager/viewcategory/3.html Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 7/5/2013 10:13 PMLast edited by: dchartier at: 7/5/2013 10:12 PMLast edited by: dchartier at: 7/5/2013 5:09 PM |
|
This contribution was helpful to2 thankful Users |
7/5/2013 10:41 PM | |
Joined: 1/28/2009 Last visit: 1/8/2025 Posts: 6858 Rating: (1366) |
Hello, and finally result come out of the forum [code] L "base" L 0.0 >=R JC end L "base" ABS LN L "power" *R EXP T #temp1 L 3.14 L "power" *R T #temp2 COS L #temp1 *R T "real_part" ////////////////////// L #temp2 SIN L #temp1 *R T "im" end: NOP 0 [/code] later I will come with math in details: UPDATE: General solution for (X^N) in SCL(Complex Variables)Best regards Hamid Hosseini |
Last edited by: hdhosseini at: 7/6/2013 9:05 AM |
|
This contribution was helpful to2 thankful Users |
Follow us on