To obtain the natural frequency of the clamped beam, I need to solve the following equation:
Cos[x]Cosh[x]==1
I use the Solve function to do this. Since this transcendental equation has infinite roots, I prescribe the range of the roots. The code I write is
Solve[Cos[x] Cosh[x] == 1 && 0 < x < 500, x, Reals]
I obtain the roots belonging to [0,500]. Now I want to prescribe the number of the roots rather than the range of the roots. How can I do this?
CountRoots[Cos[x] Cosh[x] - 1, {x, 0, 500}], however since it counts also multiple roots it might be resonable to useSolve,DeletDuplicatesand finallyLength. – Artes Nov 07 '17 at 09:39FindRoot. – Szabolcs Nov 07 '17 at 09:56IsolatingIntervalfor polynomials, however there is no specific functionality for transcendental equations. Nevertheless you can do it simply withSolveandTake[...,100]. There might be a bit more efficient method, but in general, it strongly depends on functions you deal with, so you shouldn't expect a universal approach. – Artes Nov 07 '17 at 10:02