RRF bracket notation in mathematical equation - syntax question
-
Id like to run a few calculations.
for example (1 + 2) * 3 = 9 is not he same as 1+2*3 = 7 because of the bracket notation. But how do you implement this in RRF? Round brackets don't work and curly brackets don't work either. Is the only way to separate the sum in to multiple parts?
-
@Wurke
You do it pretty much exactly as you've written it.
If you're trying to use it inside a parameter, you may need to use curly brackets {} around the entire equationM291 R{"The value is" ^ (1=2)*3} S1 T2
You do have to be running RRF 3.1 or later
-
@OwenD Thanks. I must have been getting errors from another section of code.
-
@Wurke
If you're doing your code in a text editor, make sure it uses Unix style line ends. LF only, not CRLF
Otherwise the line numbers reported in errors will be out. -
@Wurke if you are running your machine in CNC mode then characters inside round brackets are normally treated as comments as per the NIST standard. You can get around this by enclosing the entire expression in { }, for example:
echo {(1+2)*3}
-
@OwenD said in RRF bracket notation in mathematical equation - syntax question:
@Wurke
If you're doing your code in a text editor, make sure it uses Unix style line ends. LF only, not CRLF
Otherwise the line numbers reported in errors will be out.This will be fixed in RRF 3.5beta2.