Skip to content

Unable to provide options to QEPCAD besides the number of cells #37518

@maxale

Description

@maxale

Problem Description

Sage's QEPCAD interface provide a parameter memcells= to qepcad() function, however this corresponds to just one (+N) of a few options that can be adjusted:

$ ./qepcad +h
Usage:
  ./qepcad <SACLIB options>

SACLIB Options:
  +h     : print this usage information.
  +N<n>  : NU      <- <n>.  default = 1000000
  +Np<n> : NUp     <- <n>.  default = 20000
  +G<n>  : GCM     <- <n>.  default = 0
  +R<n>  : RHO     <- <n>.  default = 10
  +S<n>  : NSPRIME <- <n>.  default = 500
  +M<n>  : NMPRIME <- <n>.  default = 2000
  +L<n>  : NLPRIME <- <n>.  default = 2000
  +T<n>  : NPTR1   <- <n>.  default = 2001

Currently there is no official way to change the others.

Proposed Solution

Maybe a general options= parameter can be added to qepcad() to allow the user providing arbitrary options to QEPCAD.

Alternatives Considered

Currently, a workaround is to use the hack with specifying memcells= as a string starting with the value for +N followed by any other options, e.g. qepcad(..., memcells='2000000 +L3000'):

sage: from sage.interfaces.qepcad import _qepcad_cmd
sage: _qepcad_cmd(memcells='2000000 +L3000')
'env qe=/usr/local/sage/sage/local qepcad +N2000000 +L3000'

Additional Information

No response

Is there an existing issue for this?

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions