Post Reply 
Debugging With an Orange Bang
06-30-2017, 12:26 PM
Post: #7
RE: Debugging With an Orange Bang
(06-30-2017 11:56 AM)Didier Lachieze Wrote:  Now I'm wondering why you use =< here as it works as well with := instead of =< in the lines:

Code:
        c(x) =<  0.5 * m12 / m11; // center of circle
        c(y) =< -0.5 * m13 / m11;

In order for that to work, c has to either be global or be passed by reference. Otherwise modifying the values in c in the function circl won't modify the values in the main program. At least that's what I've found in regular programs. Maybe in CAS programs it's different? If so, I'll be making most of my programs CAS from now on. Thanks for your time and expertise on this!

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Debugging With an Orange Bang - toml_12953 - 06-29-2017, 02:58 AM
RE: Debugging With an Orange Bang - toml_12953 - 06-30-2017 12:26 PM



User(s) browsing this thread: 1 Guest(s)