Ask Your Question

hbghlyj's profile - activity

2023-12-24 04:20:51 +0200 asked a question 2r^2 interpreted as 2^2

2r^2 interpreted as 2^2 var('r') 2r^2 outputs 4 Why is that?

2023-12-24 04:20:14 +0200 asked a question multiply without *

multiply without * var('r') 2r^2 outputs 4 Why is that?

2023-11-19 23:43:37 +0200 marked best answer An infinite continued fraction of $x^n$

I coded in SageMath to compute the 50th convergent of $f(x)$ and plot for integers $x=1,\dots,50$:

def f(x, n_terms):
    result = []
    for i in range(n_terms):
        result.extend([x**i, x**i])
    return continued_fraction([0] + result).n()

list_plot(([f(x,50) for x in range(1,50)]), title='$f(x)=\\dfrac{x}{x+\\dfrac{x^2}{x^2+\\dfrac{x^3}{x^3+\\ddots}}}$')

My question is to make a continuous plot of $f(x)$. I have difficulty in that continued_fraction only support integer values of $x$.

2023-11-19 23:43:37 +0200 received badge  Scholar (source)
2023-11-19 11:22:07 +0200 commented answer An infinite continued fraction of $x^n$

The code throws error: verbose 0 (3935: plot.py, generate_plot_points) WARNING: When plotting, failed to evaluate funct

2023-11-19 11:21:45 +0200 commented answer An infinite continued fraction of $x^n$

The code throws error: verbose 0 (3935: plot.py, generate_plot_points) WARNING: When plotting, failed to evaluate func

2023-11-19 00:54:32 +0200 commented question An infinite continued fraction of $x^n$

Yes, the built-in function continued_fraction() expects a list of integers, but I want to compute $$f(x)=\cfrac{x}{x+\cf

2023-11-19 00:54:13 +0200 commented question An infinite continued fraction of $x^n$

Yes, the built-in function continued_fraction() expects a list of integers, but I want to compute $$f(x)=\cfrac{x}{x+\cf

2023-11-19 00:53:51 +0200 commented question An infinite continued fraction of $x^n$

Yes. the built-in function continued_fraction() expects a list of integers. I want to compute the function $$f(x)=\cfrac

2023-11-19 00:53:35 +0200 commented question An infinite continued fraction of $x^n$

Yes. the built-in function continued_fraction() expects a list with integer elements. I want to compute the function $$f

2023-11-19 00:52:47 +0200 commented question An infinite continued fraction of $x^n$

Yes. I want to compute the function $$f(x)=\cfrac{x}{x+\cfrac{x^2}{x^2+\cfrac{x^3}{x^3+\cdots}}}$$ for real number $x>

2023-11-19 00:51:48 +0200 commented question An infinite continued fraction of $x^n$

Yes. we cannot use the built-in function continued_fraction(). I want to compute the function $$f(x)=\cfrac{x}{x+\cfrac{

2023-11-19 00:51:21 +0200 commented question An infinite continued fraction of $x^n$

Yes. we cannot use the built-in function continued_fraction(). I want to compute the real function $$f(x)=\cfrac{x}{x+\c

2023-11-19 00:50:53 +0200 commented question An infinite continued fraction of $x^n$

I want to compute the real function $f(x)=\dfrac{x}{x+\dfrac{x^2}{x^2+\dfrac{x^3}{x^3+\ddots}}}$ we cannot use the built

2023-11-18 18:41:05 +0200 asked a question An infinite continued fraction of $x^n$

An infinite continued fraction of $x^n$ I coded in SageMath to compute the 50th convergent of $f(x)$ and plot for intege