About 224,000 results
Open links in new tab
  1. How do you enter the command for a cube root? - MATLAB Answers - MATLAB ...

    Nov 24, 2021 · To complete John's thought, there are three distinct cube roots of every non-zero number (positive real, negative real, complex), not just of the negative real numbers. And as John points out, some of these roots are complex, so you need to know how the tools you are using behave in order to get the answer(s) you want.

  2. nthroot - Real nth root of real numbers - MATLAB - MathWorks

    Y = nthroot(X,N) returns the real nth root of X. If an element in X is negative, then the corresponding element in N must be an odd integer. Find the real cube root of -27. For comparison, calculate (-27)^(1/3). The result is the complex cube root of -27. Calculate several real nth roots of -8. -1.5157 -2.0000 -0.1250.

  3. How can I find roots of cubic function? - MATLAB Answers

    Apr 10, 2018 · I have a 3 x 3 matrix and with position (1,1) "x" as an unknown variable, after I solved for the invariants my cubic functions becomes y^3 - (x+50)y^2 +(500x -5200)y + (3600x) = 0. How can I solve for the roots in terms of x on matlab?

  4. How to get (-8)^0.333333 = -2 in MATLAB? - Stack Overflow

    Sep 28, 2011 · MATLAB 7.0 provides the NTHROOT function, which returns the real roots of a number. So your formula becomes NTHROOT(-8, 3) = -2. If you are using a version prior to MATLAB 7.0 (R14), please read the following: To obtain the real cube root of a negative real number "x", rather than executing: x.^(1/3) use the command: sign(x).*abs(x.^(1/3))

  5. Cube Root in Matlab: A Quick Guide to Mastering It

    Discover how to effortlessly calculate the cube root in matlab. This concise guide unveils essential commands and tips for your coding journey. In MATLAB, you can calculate the cube root of a number using the `nthroot` function or by raising the number to the power of `1/3`. Here’s a simple example using both methods: % Using power operation .

  6. Using Newton Raphson for Root Finding and Parameters' Estimation in Matlab

    Jun 26, 2014 · If I understand correctly, you should be using ROOTS to find the roots of cubic polynomials, like this: roots ( [4 -2 3 -1]) for 4x^3 - 2x^2 +3x -1. You can easily calculate how a root changes with respect to each coordinate. In p (x)=0, one finds that dp/da + p' (x)*dx/da = 0 for any parameter a.

  7. Solve a cubic equation using MATLAB code - MathWorks

    Feb 26, 2011 · Now you can plot of w0(K) against L{K}, but keep in mind that you might have no real roots or one real root or three real roots for any individual w, so you will have to build appropriate plotting code.

  8. Remember that you can also use the exponent operator to compute the roots of numbers. If you want to find the cube root of 876, simply type: >> 876^(1/3) ans = 9.5683 2.5 Built-in MATLAB functions MATLAB has the same built in functions that you see in scientific calculators. A few examples are, sin(x), cos(x), tan(x), log(x), sqrt(x), and exp(x).

  9. Write a function to calculate the cubic root of a 2D array

    Mar 17, 2020 · An algorithm for calculating the cubic root of a number, 3√? , starts by choosing a value ?1 as a first estimate of the root. Using this value, a second, more accurate value ?2 is calculated as ?2 = ?1 (?1^3 + 2?)/(2?1^3 + ?), which is then used for calculating a third, still more accurate value ?3, and so on.

  10. How to find the first root of a cubic equation in matlab

    Oct 8, 2015 · Question: Given a cubic equation where the coefficients are real but can take any extreme conditions (e.g very large or very small number), write a program in Matlab that finds all the roots of this equation. You can't use the built-in functions roots and fzero.

  11. Some results have been removed