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

Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.

Getting error as variable is undefined

vveeran
4-Participant

Getting error as variable is undefined

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

2 REPLIES 2

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?

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

Top Tags