Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been tasked with working out how much some incorrectly entered calibration coefficients have affected some measurements we've taken. I have the algorithm used, which I can use to work backwards and get some error ranges, but I'm a bit stuck on notation.

The algorithm reads, in part:


but I'm a but flummoxed on how to translate this into, say, MATLAB syntax - especially the $\ln^2$ part.

Sorry for the stupid question, but this is out of my field a fair bit, and high school maths class was a long time ago...

share|cite|improve this question
Matlab uses $\log $ to represent the natural log function. If you know the values of $x$ and $y$, then it is easy to evaluate the expression in question. Do this is matlab: x*(log(1000/y))^2. – Nana May 6 '11 at 2:24
Thanks to both Gustav and Nana for the prompt replies. I had some test values I could put in, and I got the correct result from the algorithm. – Caligari May 6 '11 at 2:44
up vote 0 down vote accepted

My guess is x * log(1000/y)^2.

Basic functions sometimes put powers of two before the parentheses. It's a common practice for trigonometric functions, even though I can't recall seeing it for ln.

share|cite|improve this answer

I would like to add that if you need to work on a vector value of x and y you will have to put a "dot" before the ^2


This reads "preform the operation of squaring on every component of x and y separately"

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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