Ask Your Question

mathstudent's profile - activity

2021-07-22 18:16:55 +0200 edited question Defining vector partition functions in sage

Defining vector partition functions in sage I want to define a vector partition function starting from a given list of v

2021-07-22 18:16:52 +0200 commented answer Defining vector partition functions in sage

Edited post for clarity... please check.

2021-07-22 10:58:00 +0200 commented answer Defining vector partition functions in sage

Understood. I wanted to get all partitions by somehow subtracting one part and knowing the smaller partitions. Do you ha

2021-07-21 15:33:26 +0200 received badge  Editor (source)
2021-07-21 15:33:26 +0200 edited question Defining vector partition functions in sage

Defining vector partition functions in sage I want to define a vector partition function starting from a given list of v

2021-07-21 15:16:53 +0200 asked a question Defining vector partition functions in sage

Defining vector partition functions in sage I want to define a vector partition function starting from a given list of v

2021-06-30 01:57:39 +0200 received badge  Nice Question (source)
2021-06-29 22:30:39 +0200 marked best answer Define matrix indexed by partitions

I want to define the following matrix in sage: $J$ is of size Partitions(n), and $J_{\lambda, \mu} = 1$ if $\lambda'=\mu$ and $0$ else. Can someone please help?

2021-06-29 22:30:34 +0200 commented answer Define matrix indexed by partitions

This was exactly what I was looking for. Thank you so much.

2021-06-29 21:00:56 +0200 asked a question Define matrix indexed by partitions

Define matrix indexed by partitions I want to define the following matrix in sage: $J$ is of size Partitions(n), and $J_

2021-06-02 18:58:11 +0200 commented answer plot not working in windows

Thank you. I will try sage 9.1

2021-06-02 18:57:39 +0200 commented question plot not working in windows

Nope. Doesn't work

2021-06-02 16:03:10 +0200 asked a question plot not working in windows

plot not working in windows I am using sagemath on windows 10. If I do f(x)=x plot(f) my sagemath complete

2020-09-19 06:59:12 +0200 asked a question Functions in polynomials rings

I want to define a function in a polynomial ring in several variables.

R.<x1,x3,x5>=PolynomialRing(QQ)

I am trying to define a function that takes $(i,j)$ to $x_i^j$.

I tried

def f(i,j):
   return xi^j

This does not work. I tried replacing xi with x[i], that doesn't work. Can someone please tell me what I am doing wrong and how to fix it? If instead of taking 3 variables I take only 1 variable then the method works.

2020-09-19 06:09:36 +0200 received badge  Scholar (source)
2020-09-06 10:42:42 +0200 commented answer Derivative in infinite polynomial ring

Thanks a lot.

2020-09-06 10:42:16 +0200 received badge  Supporter (source)
2020-09-05 20:12:00 +0200 received badge  Student (source)
2020-09-05 19:50:05 +0200 asked a question Derivative in infinite polynomial ring

I am defining my ring as R.<x>=InfinitePolynomialRing(QQ), and this should give me ring with variables x[1],x[2],... etc. right? Now I want to differentiate a polynomial with respect to x[1] variable. So I defined f=x[1]^3 (for example). I am trying f.derivative(x[1]) but that does not work. It shows " 'typeerror': argument 'var' has incorrect type (expected sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingular, got InfinitePolynomial_dense)." Can someone please explain what is wrong and what I should do to fix it?