Skip to main content
4-Participant
April 7, 2015
Solved

Getting error as variable is undefined

  • April 7, 2015
  • 2 replies
  • 1282 views

I want to see the values of f(n) by using the find command.

But i am getting the error as variable is undefined.

Please help me.

Thanks in advance

Best answer by AlanStevens

You need to make sure you have an initial guess for n, and make the solve block a function of vk - see attached.

However, as Fred points out, it is easy to solve explicitly for n here.

Alan

2 replies

23-Emerald I
April 7, 2015

Not sure why the solve block won't work. (Doesn't like v_k as a range variable but it wouldn't work for a single value either.)

But you can use the symbolic engine to get n as a function of E_k and v_k, see attached.

By the way, what's g_k for,decoration?

19-Tanzanite
April 7, 2015

You need to make sure you have an initial guess for n, and make the solve block a function of vk - see attached.

However, as Fred points out, it is easy to solve explicitly for n here.

Alan