error message adjacent objects

1,435 views
Skip to first unread message

chirag....@gmail.com

unread,
Nov 13, 2010, 5:14:36 PM11/13/10
to Macaulay2
I am new to Macualay 2, so I apologize if I am asking a very basic
question. I wanted to calculate the Hilbert basis of a cone. I
entered the commands that are in the Macaulay 2 documentation onto my
copy of Macaulay 2 and I get the following error below. I am
wondering if there is another package that I am to install in order
for this to work. I have a Mac, so I followed the standard
installation procedures for the installation of Macaulay 1.4. I also
used the setup() command.


ii1 : C = posHull matrix {{1,2},{2,1}}
/Applications/Macaulay2-1.4/share/Macaulay2/Core/robust.m2:98:26:(1):
[1]: error: no method for adjacent objects:
-- posHull (of class Symbol)
-- SPACE | 1 2 | (of class Matrix)
-- | 2 1 |

Thank you.

Baptiste Calmès

unread,
Nov 13, 2010, 5:24:44 PM11/13/10
to maca...@googlegroups.com

Le 13 nov. 2010 à 23:14, chirag....@gmail.com a écrit :

> I am new to Macualay 2, so I apologize if I am asking a very basic
> question. I wanted to calculate the Hilbert basis of a cone. I
> entered the commands that are in the Macaulay 2 documentation onto my
> copy of Macaulay 2 and I get the following error below. I am
> wondering if there is another package that I am to install in order
> for this to work.

posHull comes with the package "Polyhedra". You don't need to install it, it comes with the standard M2 installation. But, as most packages, it is not automatically loaded when you start M2. To load it, just type

loadPackage "Polyhedra"

after starting Macaulay 2.
Then, your line with posHull will work.

See the documentation node

http://www.math.uiuc.edu/Macaulay2/doc/Macaulay2-1.4/share/doc/Macaulay2/Macaulay2Doc/html/_packages.html

for more information on packages.

chirag....@gmail.com

unread,
Nov 13, 2010, 5:49:58 PM11/13/10
to Macaulay2
Thanks! That seems to be exactly my problem.

On Nov 13, 5:24 pm, Baptiste Calmès <baptiste.cal...@gmail.com> wrote:
> Le 13 nov. 2010 à 23:14, chirag.lakh...@gmail.com a écrit :
>
> > I am new to Macualay 2, so I apologize if I am asking a very basic
> > question.  I wanted to calculate the Hilbert basis of a cone.  I
> > entered the commands that are in the Macaulay 2 documentation onto my
> > copy of Macaulay 2 and I get the following error below.  I am
> > wondering if there is another package that I am to install in order
> > for this to work.
>
> posHull comes with the package "Polyhedra". You don't need to install it, it comes with the standard M2 installation. But, as most packages, it is not automatically loaded when you start M2. To load it, just type
>
> loadPackage "Polyhedra"
>
> after starting Macaulay 2.
> Then, your line with posHull will work.
>
> See the documentation node
>
> http://www.math.uiuc.edu/Macaulay2/doc/Macaulay2-1.4/share/doc/Macaul...

lkastner

unread,
Nov 14, 2010, 3:51:49 PM11/14/10
to Macaulay2
Did you load the package Polyhedra? (loadPackage "Polyhedra")
LK

On Nov 13, 11:14 pm, "chirag.lakh...@gmail.com"

bahare....@gmail.com

unread,
Apr 2, 2016, 9:19:35 AM4/2/16
to Macaulay2

I start to use macaulay 2 for solving questions,So I apologize if Iam asking a very basic question. I wanted to calculate the Lyubeznik numbers of
the ring K[x,y,z]/I where / is the ideal (x(y — z),x*y*z). I used walthers algorithm and   I get the following error below.
  

error: no method for adjacent objects:

-- localCohom (of class Symbol)

-- SPACE ideal (x*y - x*z, x*y*z) (of class Ideal)

may I ask you how can solve error I mentioned above.
thank you, 

Daniel R. Grayson

unread,
Apr 2, 2016, 12:55:55 PM4/2/16
to Macaulay2
The package Dmodules has a function called localCohom, so perhaps that's the one that
needs to be loaded.
Message has been deleted

bahare....@gmail.com

unread,
Apr 3, 2016, 6:08:43 AM4/3/16
to Macaulay2
Thank you, I really appreciate you.

bahare....@gmail.com

unread,
Apr 3, 2016, 11:42:32 AM4/3/16
to Macaulay2
Excuse me, I could not load localCohom package in macaulay2. As the matter of fact, recently, I start to use macaulay 2. so may I ask you how can learn to load or writing package or writing Algorithms in macaulay.  How can I  be more familiar with macaulay program .  May i ask you have any  pdf.lecture and educational film? Do you know exist macaulay 2 workshop in August or September. Learning macaulay2 is really vital  for me. I really appreciate you.

Thomas Kahle

unread,
Apr 3, 2016, 1:56:34 PM4/3/16
to maca...@googlegroups.com
Maybe the Macaulay2 book can help you get started. It's available here:
http://www.math.uiuc.edu/Macaulay2/Book/

Cheers,
Thomas
> --
> You received this message because you are subscribed to the Google
> Groups "Macaulay2" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to macaulay2+...@googlegroups.com
> <mailto:macaulay2+...@googlegroups.com>.
> To post to this group, send email to maca...@googlegroups.com
> <mailto:maca...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/macaulay2.
> For more options, visit https://groups.google.com/d/optout.

--
Thomas Kahle

signature.asc

Daniel R. Grayson

unread,
Apr 3, 2016, 7:09:33 PM4/3/16
to Macaulay2


On Sunday, April 3, 2016 at 10:42:32 AM UTC-5, bahare....@gmail.com wrote:
Excuse me, I could not load localCohom package in macaulay2.

There is no package called localCohom.  But there is a function with that name in the package Dmodules.  So try

loadPackage "Dmodules"


As the matter of fact, recently, I start to use macaulay 2. so may I ask you how can learn to load or writing package or writing Algorithms in macaulay.  How can I  be more familiar with macaulay program .  May i ask you have any  pdf.lecture and educational film? Do you know exist macaulay 2 workshop in August or September. Learning macaulay2 is really vital  for me. I really appreciate you.

There is no workshop in those months, but this google group is a good way to get questions answered, and there is also the
documentation, which you can read. 

bahare....@gmail.com

unread,
Apr 4, 2016, 2:00:49 AM4/4/16
to Macaulay2
I'm really grateful you to answer my questions, I hope that I can promote my knowledge macaulay2 With your guidance in this group.

bahare....@gmail.com

unread,
Apr 4, 2016, 2:03:20 AM4/4/16
to Macaulay2
 I really appreciate you.Thank you.
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages