# Roots of a function

Hello,

Given the following function

```
f(x)=1/(x+1)^(1/3)
```

I would like to assign the 3 roots of this function to three different functions; say f1(x),f2(x),f3(x). How can I do that with sage?

Roots of a function

Hello,

Given the following function

```
f(x)=1/(x+1)^(1/3)
```

I would like to assign the 3 roots of this function to three different functions; say f1(x),f2(x),f3(x). How can I do that with sage?

2

**Assuming** that, as suggested by `tmonteil`

, you mean a function per cube root branch, the following one-liner :

```
sage: (f1,f2,f3)=tuple(((1/u)*1/(x+1)^3).function(x) for u in (x^3==1).roots(multiplicities=False))
```

does what you mean :

```
sage: [f1, f2, f3]
[x |--> 1/((x + 1)^3*(1/2*I*sqrt(3) - 1/2)),
x |--> 1/((x + 1)^3*(-1/2*I*sqrt(3) - 1/2)),
x |--> (x + 1)^(-3)]
```

But remember that the expression `1/(1+x)^(1/3)`

will evaluate to *some* cube root of `x+1`

, with no specification of which one :

```
sage: ((x+1)^(1/3)).subs(x=7)
2
sage: ((x+1)^(1/3)).subs(x=-9)
2*(-1)^(1/3)
sage: ((x+1)^(1/3)).subs(x=-9).n()
1.00000000000000 + 1.73205080756888*I
```

*Caveat emptor*... HTH,

Asked: **
2020-06-08 14:51:11 -0600
**

Seen: **75 times**

Last updated: **Jun 08**

Laurent Expansion at Infinity / Root finding

how to check if a polynom is a square

How do i solve a 2 variable polynomial over 1 variable

checking a list of vectors constitute the basis of a root system

Roots in a polynomial over $GF(2^8)$?

Complex roots of non-squarefree real polynomial

"partial_fraction_decomposition" with possibly "complex roots", again

Roots of polynomials over a non-prime finite field in a given extension

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.

What do you mean by

root? Do you meanbranchof the cube root ?