Author Topic: mathematica  (Read 652 times)

0 Members and 1 Guest are viewing this topic.

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
evil


is anyone here well versed in this horror,
specificly, does anyone here know how to define a function that will return a 3d vector?
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Code: [Select]
vector my_function()
{
     vector retval;
     retval.x = 1.0f;
     retval.y = 0.0f;
     retval.z = 0.0f;

     return retval;
}
-C

  

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
that's c, not mathematica
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
-C

 

Offline Mongoose

  • Rikki-Tikki-Tavi
  • Global Moderator
  • 212
  • This brain for rent.
    • Steam
    • Something
I'm stuck with Maple myself, which is probably just about as bad.  Who writes the syntax for these idiotic programs, anyway?  You'd think that typing "2x" would be automatically taken to mean "2*x", but I guess Maple's too smart for that. :p