Ask Your Question

Cyrille's profile - activity

2023-03-27 18:39:56 +0200 edited question Problems with the new way to load Sagemath

Problems with the new way to load Sagemath One more question in form of a suggeestion. Since the new way to install Sage

2023-03-27 11:46:14 +0200 edited question Problems with the new way to load Sagemath

Problems with the new way to load Sagemath One more question in form of a suggeestion. Since the new way to install Sage

2023-03-27 11:42:55 +0200 asked a question Problems with the new way to load Sagemath

Problems with the new way to load Sagemath One more question in form of a suggeestion. Since the new way to install Sage

2023-03-24 19:33:50 +0200 commented answer Is it possible to substitute $U^\prime$ to $D_0(U)$ ?

Emmanuel in economics, this is a situation one encounters often. For instance $U(w)$ is a fonction of wealth. We use to

2023-03-23 09:37:44 +0200 commented answer Some questions on plot

Thanks Emmanuel, you can see that I try intensively to learn SageMath and Python (Smile)

2023-03-23 00:18:04 +0200 edited question Some questions on plot

Some questions on plot This is a multi-form question. After this question https://ask.sagemath.org/question/67023/error-

2023-03-23 00:10:44 +0200 asked a question Some questions on plot

Some questions on plot This is a multi-form question. After this question https://ask.sagemath.org/question/67023/error-

2023-03-22 23:28:43 +0200 commented question Error in listing a Zip

My version is 9.7. But I encounter the same problem with 9.3. And sorry for the blank space. It was only a typesetting e

2023-03-22 23:18:45 +0200 commented question Error in listing a Zip

My version is 9.7. But I encounter the sa

2023-03-22 16:22:41 +0200 asked a question Error in listing a Zip

Error in listing a Zip Until the end of this code all is fine billes=[ZZ.random_element(0, 4) for i in range(50)] bill

2023-03-14 07:18:55 +0200 received badge  Popular Question (source)
2023-03-12 21:41:25 +0200 edited question Launch Automatization for Sagemath through Docker

Launch Automatization for Sagemath through Docker In connection with this question https://ask.sagemath.org/question/668

2023-03-12 21:41:12 +0200 edited question Launch Automatization for Sagemath through Docker

Lauch Automatization for Sagemath through Docker In connection with this question https://ask.sagemath.org/question/6684

2023-03-12 21:40:45 +0200 asked a question Launch Automatization for Sagemath through Docker

Lauch Automatization for Sagemath through Docker In connection with this question https://ask.sagemath.org/question/6684

2023-03-12 21:22:13 +0200 commented question New ways to install Sage failed ; Need help

For the second way to install Sagemath, I will answer in a few time because all this demand a lot of time (start and res

2023-03-12 21:20:45 +0200 commented question New ways to install Sage failed ; Need help

Inside Docker there are containers. I choose the one with 8888:8888 in the ports column. I start it.Then I go to the 3 v

2023-03-12 21:15:56 +0200 commented question New ways to install Sage failed ; Need help

It works nicely. In the same way, if I run docker run -p8888:8888 sagemath/sagemath:latest sage-jupyter, it propose to

2023-03-12 21:14:09 +0200 commented question New ways to install Sage failed ; Need help

I will try to answer your question step by step since I have found a way to make Sagemath work. I have installed Docker

2023-03-12 11:31:11 +0200 commented question New ways to install Sage failed ; Need help

Which ever be he way i try to install Sage there is always a fail. I need a simple installation in the same way that the

2023-03-12 11:28:14 +0200 edited question New ways to install Sage failed ; Need help

New ways to install Sage failed ; Need help I am sorry to be obliged to ask this question. Until now, I was using the ol

2023-03-12 11:27:32 +0200 edited question New ways to install Sage failed ; Need help

New ways to install Sage failed ; Need help I am sorry to be obliged to ask this question. Until now, I was using the ol

2023-03-11 23:28:17 +0200 received badge  Notable Question (source)
2023-03-10 16:27:45 +0200 commented question New ways to install Sage failed ; Need help

Which ever be he way i try to install Sage there is always a fail. I need a simple installation in the same way that the

2023-03-10 16:25:25 +0200 commented question New ways to install Sage failed ; Need help

Which ever be he way i try to install Sage there is always a fail. I need a simple installation in the same way that the

2023-03-08 19:21:02 +0200 edited question New ways to install Sage failed ; Need help

New ways to install Sage failled Need help I am sorry to be obliged to ask this question. Until now, I was using the old

2023-03-08 19:20:47 +0200 asked a question New ways to install Sage failed ; Need help

New ways to install Sage failled Need help I am sorry to be obliged to ask this question. Until now, I was using the old

2023-03-04 15:15:52 +0200 commented answer Applying a bivariate function to a list of couples

I learn step by step. In all cases thank you.

2023-03-04 15:15:13 +0200 marked best answer Applying a bivariate function to a list of couples

I have this function :

def F(v,a):
       if v > a :
            return 4*a - 3*(v-a)
       else : 
            return v - 2*(a-v)^2

I want to applied it to L2 define by

L0=list(range(4))
L1=list(range(4))
L2=flatten([[(v,a) for v in L0] for a in L1],max_level=1)

The only way I found to do this is the following

Vv=[(x,F(x[0],x[1])) for x in L2]
Vv

I wonder if there is a more efficient, elegant way to do this like with apply_map().

2023-03-04 15:15:02 +0200 edited question Applying a bivariate function to a list of couples

Applying a bivariate function to a list of couples I have this function : def F(v,a): if v > a :

2023-03-04 13:36:26 +0200 asked a question Applying a bivariate function to a list of couples

Applying a bivariate function to a list of couples I have this function : def F(v,a): if v > a :

2023-02-24 18:02:06 +0200 commented answer On mutating a variable to a function

Emmanuel you are the expert not me. But in the documentation I have read and cited in the beginning of my question it is

2023-02-24 12:27:07 +0200 commented answer On mutating a variable to a function

Nice but you are obliged to change the name of the variable.

2023-02-24 10:25:31 +0200 edited question On mutating a variable to a function

On mutating a variable to a function In looking to the page https://doc.sagemath.org/html/en/reference/calculus/sage/cal

2023-02-24 10:24:54 +0200 edited question On mutating a variable to a function

On mutating a variable to a function In looking to the page https://doc.sagemath.org/html/en/reference/calculus/sage/cal

2023-02-24 10:24:27 +0200 asked a question On mutating a variable to a function

On mutating a variable to a function In looking to the page https://doc.sagemath.org/html/en/reference/calculus/sage/cal

2023-02-23 22:24:44 +0200 commented question Displaying a smaller number of 0 for a Real call

The question is ; does this approximation has any consequences in subsequent operations ?

2023-02-23 16:39:42 +0200 asked a question Displaying a smaller number of 0 for a Real call

Displaying a smaller number of 0 for a Real call Suppose I define the function var('A y') f(A,x,y)= A*x^.25*y^.25 If

2023-02-18 15:06:25 +0200 received badge  Notable Question (source)
2023-02-18 12:54:19 +0200 edited question Comparing the computational time of two ways of the same result

Comparing the computational tiom of two ways of the same result The two following codes accomplish the same task 1) L

2023-02-18 12:54:10 +0200 commented answer Comparing the computational time of two ways of the same result

Thanks Emmanuel. Should I say that a the second method is always more efficient that the first, that is working directly

2023-02-18 12:49:43 +0200 marked best answer Comparing the computational time of two ways of the same result

The two following codes accomplish the same task

1)

L=list(range(0,100,10))
Ld0=[x^2 for x in L]
Lc=[]
a=0
for i in range(len(Ld0)):
        if (Ld0[i]%6 == 0) & (Ld0[i]<= 3200) :
            Lc.append(Ld0[i])
            a+=1

2)

L=list(range(0,100,10))
Ld0=[x^2 for x in L]
Ld2=[x for x in Ld0 if (x%6 == 0) & (x<= 3200)]

which can be shown by Lc==ld2.

If I can fin easily the cpu computation time in adding %time to the first, this is not the case for the second. How to see which way is the fastest ?

2023-02-18 09:00:21 +0200 asked a question Comparing the computational time of two ways of the same result

Comparing the computational tiom of two ways of the same result The two following codes accomplish the same task 1) L

2023-02-18 04:12:42 +0200 received badge  Notable Question (source)