Ask Your Question

Revision history [back]

derivative of x^n

I am working with polynomials. I'd like to compute the symbolic derivative of a monomial with symbolic coefficients, that is something like

derivative(x^n,x)

So that the output is

nx^(n-1)

Is this possible?

derivative of x^n

I am working with polynomials. I'd like to compute the symbolic derivative of a monomial with symbolic coefficients, that is something like

derivative(x^n,x)

So that the output is

nx^(n-1)

Is this possible?

derivative of x^n

I am working with polynomials. I'd like to compute the symbolic derivative of a monomial with symbolic coefficients, that is something like

derivative(x^n,x)

So that the output is

nx^(n-1)

Is this possible?

Edit: My first try was of course to use:

diff(x^n,x)

but I get the error

TypeError: non-integral exponents not supported

derivative of x^n

I am working with polynomials. I'd like to compute the symbolic derivative of a monomial with symbolic coefficients, that is something like

derivative(x^n,x)

So that the output is

nx^(n-1)

Is this possible?

Edit: My first try was of course to use:

use:
    diff(x^n,x)

or derivative(x^n,x) but I get the error

error
    TypeError: non-integral exponents not supported
supported

derivative of x^n

I am working with polynomials. I'd like to compute the symbolic derivative of a monomial with symbolic coefficients, that is something like

derivative(x^n,x)

So that the output is

nx^(n-1)

Is this possible?

Edit: My first try was of course to use: use:

diff(x^n,x)
or
    

or

derivative(x^n,x)

but I get the error error

TypeError: non-integral exponents not supported

supported