cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Can not evaluate this accurately

yeet
1-Newbie

Can not evaluate this accurately

Hi,

I am trying to see a laser beam's behaviour but Mathcad doesn't like the characteristic representation of it giving can not evaluate this accurately error.

Please see the attachement, thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:RichardJ)

An update, with what is arguably a better solution to the problem.

View solution in original post

6 REPLIES 6
MikeArmstrong
5-Regular Member
(To:yeet)

You have a few issues with your worksheet.

  1. In you beam equation you are try to multiply omega by t, but the dimensions in the array are not the same.
  2. You also have not evaluated e, unless you actually do want to use Mathcad's built in constant.
  3. You have also raised j * omega * f do the power of e, is this correct?

Mike

RichardJ
19-Tanzanite
(To:yeet)

Numeric calculation problems again. You are going to keep running into these problems as long as you keep using huge numbers in exponential, sin, cosine, etc. functions.. Express your frequencies in THz to keep the numbers small.

RichardJ
19-Tanzanite
(To:RichardJ)

An update, with what is arguably a better solution to the problem.

MikeArmstrong
5-Regular Member
(To:RichardJ)

Nicely done Richard.

Mike

yeet
1-Newbie
(To:RichardJ)

Thanks for looking up the sheet.

From your expression I come to a conclusion that Mathcad is not capable of handling a standart laser beams characteristic because those frequencies are not chosen, they are as they are in nature. That result looks like a failure of the embedded algorithm in Mathcad because in real world tests I assure you the results are pretty 'interesting'. Also if you know a way to plot values without evaluating them that'll do the trick as well I don't know an other way to plot the response of the system in the given range without defining range variables. Your solution introduces so much complexity for such a simple problem but I'll take it because I don't have much of a choice

RichardJ
19-Tanzanite
(To:yeet)

From your expression I come to a conclusion that Mathcad is not capable of handling a standart laser beams characteristic because those frequencies are not chosen, they are as they are in nature.

Those frequencies are, but those numbers are not. They are large because you chose units of Hz. They would be 12 orders of magnitude smaller if you chose units of THz. Or, conversely, 12 orders of magnitude bigger if you were to choose units of pHz.

That result looks like a failure of the embedded algorithm in Mathcad

Yes and no. Welcome to the real world of numeric calculation. All numeric calculation, regardless of the software or specific algorithm, suffers from the fact that digital representations of numbers are limited in both range and precision. Yes, it may be possible to design algorithms that handle certain situations better, but it is not realistic to expect any algorithm to handle all possible cases. So you just need to learn to work within the limits of numeric processing.

I don't know any other way to plot the behaviour of the system in the given range without defining range variables

By using vectors of numbers, with range variables to index them. Vectors are better behaved, and can have any spacing, not just equal increments.

Your solution introduces so much complexity for such a simple problem but I'll take it because I don't have much of a choice

I'm not sure what you mean.

Using vectors rather than range variables may look more complex at first glance, but trust me, in the long run it will save you a lot of work.

Changing the scale of the numbers to THz adds no complexity at all.

Reformulating the problem by subtracting floor(f*t) does add complexity, but like I said, welcome to the real world of numerical computing. It's either that or express your numbers in THz. You may prefer not to do either, but reality dictates that you will have to pick your poison.

Top Tags