<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Imaginary number in CoDeSys</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/620ce1c502/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/620ce1c502/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/620ce1c502/</id><updated>2020-02-27T19:58:35.918000Z</updated><subtitle>Recent posts to Imaginary number in CoDeSys</subtitle><entry><title>Imaginary number in CoDeSys</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/620ce1c502/?limit=25#204c" rel="alternate"/><published>2020-02-27T19:58:35.918000Z</published><updated>2020-02-27T19:58:35.918000Z</updated><author><name>ndzied1</name><uri>https://forge.codesys.com/u/ndzied1/</uri></author><id>https://forge.codesys.com3dd5a09b104dd584f528b0b780046e946779db1a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Like any computer system, imaginary numbers will have to be handled as either a structure or array where each "number" has two sub-elements; the real part and the imaginary part.&lt;/p&gt;
&lt;p&gt;You will then have to define your own functions for all of the operations you wish to perform on the imaginary numbers.  In FORTRAN these are sometimes also called Complex Numbers so that you could write functions such as &lt;/p&gt;
&lt;p&gt;CADD for adding&lt;/p&gt;
&lt;p&gt;CSUB for subrraction&lt;/p&gt;
&lt;p&gt;CMUL for multiplication&lt;/p&gt;
&lt;p&gt;etc....&lt;/p&gt;
&lt;p&gt;At some level of complexity you will have to weigh the option of writing the impginary part of your program in a higher level language such as C++ where you can find ready made libraries for dealing with imaginary numbers.  &lt;/p&gt;
&lt;p&gt;I believe there are ways to link your own programs into CoDeSys but I have never done it myself.   Others will have to comment on this.&lt;/p&gt;
&lt;p&gt;Good Luck&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Imaginary number in CoDeSys</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/620ce1c502/?limit=25#1460" rel="alternate"/><published>2020-02-27T19:58:32.260000Z</published><updated>2020-02-27T19:58:32.260000Z</updated><author><name>davre-1</name><uri>https://forge.codesys.com/u/davre-1/</uri></author><id>https://forge.codesys.com6f41136e090ee1a247c60c4a4e8180ec55ab2b57</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Does anybody know how to use imaginary number in CoDeSys?&lt;/p&gt;
&lt;p&gt;thanks for your help&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>