Ask Your Question

Dharm's profile - activity

2022-09-25 12:04:36 +0200 edited question Unable to print a poset from Posets(15)

Unable to print a poset from Posets(15) I am interested in finding posets with some specific property. To do that, I am

2022-09-25 11:51:53 +0200 asked a question Unable to print a poset from Posets(15)

Unable to print a poset from Posets(15) I am interested in finding posets with some specific property. To do that, I am

2022-04-04 18:50:34 +0200 commented answer Unable to use Macaulay2 interface of sage in .sage file

Thank you. Both of these are working for me.

2022-04-04 16:10:36 +0200 commented question Unable to use Macaulay2 interface of sage in .sage file

The command I give is: run "abc.sage" where abc.sage is the file name. I am using SageMath 9.2 on ubuntu 16.04.

2022-04-04 11:30:49 +0200 commented question Unable to use Macaulay2 interface of sage in .sage file

I have updated the question.

2022-04-04 11:30:33 +0200 edited question Unable to use Macaulay2 interface of sage in .sage file

Unable to use Macaulay2 interface of sage in .sage file I am doing some calculations in sage using Macaulay2 interface.

2022-04-04 11:30:33 +0200 received badge  Editor (source)
2022-04-04 09:39:23 +0200 received badge  Student (source)
2022-04-04 05:39:47 +0200 asked a question Unable to use Macaulay2 interface of sage in .sage file

Unable to use Macaulay2 interface of sage in .sage file I am doing some calculations in sage using Macaulay2 interface.

2022-04-04 05:39:45 +0200 asked a question Unable to use Macaulay2 interface of sage in .sage file

Unable to use Macaulay2 interface of sage in .sage file I am doing some calculations in sage using Macaulay2 interface.

2020-11-27 05:35:49 +0200 commented question Not getting correct output while computing posets with some conditions.

All posets in P are naturally labelled. That is, for $x, y \in P$ if $x \leq y$ in $P$ then $x \leq y$ in Natural numbers. In this labelling the number of posets that satisfy the given conditions are more then one. So, I don't think that labelling is an issue here.

2020-11-26 15:24:35 +0200 asked a question Not getting correct output while computing posets with some conditions.

I want to compute finite posets on 6 elements. Also, I want the following conditions on the posets: 2 covers 0, 4 covers 2, 3 covers 1, 5 covers 3. Also, 0, 1 are incomparable and 4, 5 are incomparable. For that I am giving the following commands:

A=[] 
P = Posets(6)
for p in P:
    if p.covers(0, 2) and p.covers(2, 4) and p.covers(1, 3) and p.covers(3, 5) and p.compare_elements(1, 0) is None and p.compare_elements(4, 5) is None:
        A.append(p);
print(A)

The output I am getting is not correct. There is only one element in sage output but that is not true. Is there any issue with my code?