Skip to main content
10-Marble
November 15, 2022
Solved

Plot failing for simple equation

  • November 15, 2022
  • 1 reply
  • 794 views

For units within plot I am getting error this variable is undefined. Can someone please help what I am doing wrong in this 

Best answer by LucMeekes

 

See the errors indicated below:

LucMeekes_0-1668549167447.png

1. You haven't defined a function G. Probably you mean to multiply the constant G with (cos(z(n))-1). Add a multiplication sign.

2 This function has a parameter i, but doesn't use it. Probably you want n instead of i here.

3 The unit dB is undefined. Better leave it out, because you're taking the log already. If you insist on having dB here, define it  (as a unit) with

dB := 1

 

Then you may get:

LucMeekes_1-1668549565613.png

 

Success!

Luc

 

1 reply

LucMeekes23-Emerald IVAnswer
23-Emerald IV
November 15, 2022

 

See the errors indicated below:

LucMeekes_0-1668549167447.png

1. You haven't defined a function G. Probably you mean to multiply the constant G with (cos(z(n))-1). Add a multiplication sign.

2 This function has a parameter i, but doesn't use it. Probably you want n instead of i here.

3 The unit dB is undefined. Better leave it out, because you're taking the log already. If you insist on having dB here, define it  (as a unit) with

dB := 1

 

Then you may get:

LucMeekes_1-1668549565613.png

 

Success!

Luc