# Complex numbers in SystemModeler?

**URL:** <https://community.wolfram.com/t/complex-numbers-in-systemmodeler/1879>\
**Category:** Questions\
**Tags:** system-modeler\
**Created:** [April 2, 2014, 3:54pm UTC](https://community.wolfram.com/t/complex-numbers-in-systemmodeler/1879 "2014-04-02T15:54:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wwweaver](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wwweaver/32/9122_2.png) [@wwweaver](https://community.wolfram.com/u/wwweaver)\
**Post date:** [April 2, 2014, 3:54pm UTC](https://community.wolfram.com/t/complex-numbers-in-systemmodeler/1879/1 "2014-04-02T15:54:06Z")

</div>

Is there a easy way or tick to handle complex numbers in SystemModeler? I need to do a model with phasors and I do not see a direct way to implement it.

Thanks!

---

<div class="post-metadata">

**Author:** ![seanc](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/seanc/32/34005_2.png) [@seanc](https://community.wolfram.com/u/seanc)\
**Post date:** [April 2, 2014, 4:07pm UTC](https://community.wolfram.com/t/complex-numbers-in-systemmodeler/1879/2 "2014-04-02T16:07:30Z")

</div>

SystemModeler runs on the Modelica programming language.

The [Modelica 3.2 standard library supports complex numbers](https://www.modelica.org/news_items/modelica-standard-library-3.2-releasedhttps://www.modelica.org/news_items/modelica-standard-library-3.2-released), but [the current version of SystemModeler supports the 3.1 standard libraries](http://support.wolfram.com/kb/7368). Hopefully the next version of System Modeler will support the Modelica 3.2 standard libraries and you can use the definition of complex numbers there.

If you search online, there are some examples of complex number artihmetic being programmed handled in Modelica which you might find useful.
