I am looking to plot math functions in Blender using the Z function surface Add-On.

It works great for functions such as:


But fails for functions like:


which gives error:

Error evaluating expression: 1/( x**x ) (Check the console for more info)

The console shows:

TypeError: can't convert complex to float

...despite Google and Wolfram Alpha being able to plot these easily:

enter image description here


You can wrap your expression in parens add a .real or .imag to get the real or imaginary part, e.g. (1/(x**x)).real.

| improve this answer | |
  • $\begingroup$ Beautiful. Thank you. $\endgroup$ – Cybernetic May 21 at 13:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.