faxingberlin Posted April 22, 2017 Share Posted April 22, 2017 I am making some fractal which is needed Complex Numbers. I use Python Module's Complex Method. => complex(1, 2) = 1+2j But I want to know using Complex Numbers via VEX Language. According to SideFX's Houdini Documents, vector2 : Two floating point values. You might use this to represent texture coordinates (though usually Houdini uses vectors) or complex numbers. But I cannot know how to express the complex numbers in VEX. Quote Link to comment Share on other sites More sharing options...
mestela Posted April 22, 2017 Share Posted April 22, 2017 You have to come up with your own complex mult/add functions, but you can do it using vector2 types: 1 Quote Link to comment Share on other sites More sharing options...
faxingberlin Posted April 22, 2017 Author Share Posted April 22, 2017 39 minutes ago, mestela said: You have to come up with your own complex mult/add functions, but you can do it using vector2 types: Okay That works! I understand. Thanks! Quote Link to comment Share on other sites More sharing options...
petz Posted April 22, 2017 Share Posted April 22, 2017 if you are using houdini 16, just include complex.h in your vex code. it´s in $HFS/houdini/vex/include. 2 Quote Link to comment Share on other sites More sharing options...
mestela Posted April 23, 2017 Share Posted April 23, 2017 Ace, thanks petz! (edit) Oh wait, its a subset of functionality of the standard lib, so no cdiv or other more interesting things. Doh! Quote Link to comment Share on other sites More sharing options...
faxingberlin Posted April 25, 2017 Author Share Posted April 25, 2017 On 2017. 4. 23. at 5:13 AM, petz said: if you are using houdini 16, just include complex.h in your vex code. it´s in $HFS/houdini/vex/include. Thanks! That's really helpful Quote Link to comment Share on other sites More sharing options...
petz Posted April 27, 2017 Share Posted April 27, 2017 On 23.4.2017 at 3:56 AM, mestela said: Ace, thanks petz! (edit) Oh wait, its a subset of functionality of the standard lib, so no cdiv or other more interesting things. Doh! ah, yes, cdiv is missing. might be worth an RFE! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.