Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - Some questions
Author Message
  Post subject:   Reply with quote
Concerning your first question:
factorize and therefor commands using factorize run sometimes into an infinite
loop:
Solution: update to version 3-0-1.
Post Posted: Fri Nov 11, 2005 4:31 pm
  Post subject:   Reply with quote
Dear Hossein,

concerning your second question, you should try something like this:

Code:
proc testp (poly p)
{
  def BR = basering;
 
  // Set up new ring and make it the active ring:
  //====================================
  list L = ringlist(basering);
  int s = size(L[2]);   // number of variables
  L[2][s+1] = "@t";     // add new variable with name @t
  int m = size(L[3]);   // number of blocks in def. of ordering
  L[3][m+1] = list("lp",intvec(1));  // implement product ordering
  def newRing = ring(L);
  setring newRing;

  // Compute in the new basering:
  //=========================
  ideal I = @t^2*imap(BR,p), @t^2+var(1)+var(2);
  I = eliminate(I,@t);  // output does not depend on @t
             
  // Transfer results to the previous basering:
  //==================================
  setring BR;
  ideal I = imap(newRing,I);

  return(I);
}


Christoph Lossen
(SINGULAR Team)
Post Posted: Tue Oct 04, 2005 2:27 pm
  Post subject:  Some questions  Reply with quote
Hi

I have written some proceedures and I have observed that
they work well when I restart Singular; Otherwise they just
start doing something and when I want to interupt them then I get:

//**Interupt at cmd: $INVALID$ in line .....

and some times

//**Interupt at cmd: return(aa) ....

(In aa there is no calculations going on; it contains a polynomial)


Another Question: If inside a proceedure one wants
to add a new parameter to the basering (outside the proceedure)
and do some calculations and then export some data
(without containing the new parameter) to the basering,
which combination of commands one must use?


Bests
.

email: movasati@mathematik.tu-darmstadt.de
Posted in old Singular Forum on: 2005-08-03 09:37:31+02
Post Posted: Thu Aug 11, 2005 5:33 pm


It is currently Fri May 13, 2022 11:00 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group