Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fricas-1.0.5 update #4461

Closed
sagetrac-bpage mannequin opened this issue Nov 7, 2008 · 7 comments
Closed

fricas-1.0.5 update #4461

sagetrac-bpage mannequin opened this issue Nov 7, 2008 · 7 comments

Comments

@sagetrac-bpage
Copy link
Mannequin

sagetrac-bpage mannequin commented Nov 7, 2008

The fricas project http://groups.google.com/group/fricas-devel/t/813c8e04c3052043?hl=en has a new release (1.0.4) which includes enhancements specifically related to the Sage interface. A new version of the optional fricas package (current verson fricas-1.0.3.p0) needs to be created.

The procedure involves first building fricas on some convenient platform to generate cached lisp code. This might take about 1 - 2 hours on a fast machine. This generated code can than be included in a new source distribution created by running

../fricas/src/scripts/mkdist.sh --copy_lisp

The contents of the ./dist directory can be moved to the ./src directory of the spkg. The use of cached lisp allows fricas to be built in about 12 minutes or less on a the target machine.

Note: There may be a problem with clisp support of FFI in Sage. A patch to allow fricas to build without FFI is attached (not yet tested with fricas-1.0.4).

Component: packages: optional

Keywords: axiom interface

Issue created by migration from https://trac.sagemath.org/ticket/4461

@sagetrac-bpage sagetrac-bpage mannequin added this to the sage-4.1.1 milestone Nov 7, 2008
@sagetrac-bpage
Copy link
Mannequin Author

sagetrac-bpage mannequin commented Nov 7, 2008

Attachment: disable-ffi.patch.gz

disable FFI in fricas

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Nov 7, 2008

comment:1

I am not sure what to do about the Aldor interface, i.e. we discourage spkgs downloading content dynamically during build. For now I would prefer that the default for now does not attempt to build the Aldor interface and only does so if some env variable (like SAGE_FRICAS_ALDOR is equal to 'yes').

Cheers,

Michael

@sagetrac-bpage
Copy link
Mannequin Author

sagetrac-bpage mannequin commented Jan 27, 2009

comment:2

No package for fricas release 1.0.4 was ever completed. Meanwhile there is a new version of FriCAS available.

An experimental package for fricas release 1.0.5 is available here:

http://sage.math.washington.edu/home/page/packages/fricas-1.0.5.spkg

So far I have only tested this package with sage-3.1.2 on sage.math using the following commands:

  $ wget http://sage.math.washington.edu/home/page/packages/fricas-1.0.5.spkg
  $ .../sage -f fricas-1.0.5.spkg

For example with this version you can compute the following integral:

sage: ex1=axiom(2^x/sqrt(1+4^x));ex1

       x
      2
  ---------
   +------+
   | x
  \|4  + 1
sage: ex1.integrate(x)

         +-----------------+
         |   x log(2) 2          x log(2)
    log(\|(%e        )  + 1  - %e        )
  - --------------------------------------
                    log(2)

Help testing on other platforms and versions of Sage would be appreciated.

@sagetrac-bpage sagetrac-bpage mannequin changed the title fricas-1.0.4 update fricas-1.0.5 update Jan 27, 2009
@sagetrac-bpage
Copy link
Mannequin Author

sagetrac-bpage mannequin commented Jan 27, 2009

comment:3

On Mon, 26 Jan 2009 21:56:44 -0800 William Stein wrote:

It fails the following tests (have you posted a patch to trac to update this)?

By the way, when using this, I repeatedly felt like I wished the
command in Sage were "fricas" instead of "axiom" and the file to test
were "fricas.py" instead of "axiom.py".

wstein@sage:~/sage/devel/sage/sage/interfaces$ sage -t -optional axiom.py
sage -t -optional "devel/sage-main/sage/interfaces/axiom.py"
**********************************************************************
File "/home/wstein/sage/devel/sage-main/sage/interfaces/axiom.py", line 61:
    sage: F.type()                              # optional
Expected:
    Factored Polynomial Integer
Got:
    Factored(Polynomial(Integer))
**********************************************************************
File "/home/wstein/sage/devel/sage-main/sage/interfaces/axiom.py", line 80:
    sage: print axiom.eval('factor(x^5 - y^5)')   # optional
Expected:
               4      3    2 2    3     4
    - (y - x)(y  + x y  + x y  + x y + x )
    <BLANKLINE>
    Type: Factored Polynomial Integer
Got:
                 4      3    2 2    3     4
      - (y - x)(y  + x y  + x y  + x y + x )


                                                                 Type:
Factored(Polynomial(Integer))
    <BLANKLINE>
**********************************************************************
File "/home/wstein/sage/devel/sage-main/sage/interfaces/axiom.py", line 561:
    sage: axiom(x+2).type()  #optional -- requires Axiom
Expected:
    Polynomial Integer
Got:
    Polynomial(Integer)
**********************************************************************
File "/home/wstein/sage/devel/sage-main/sage/interfaces/axiom.py", line 623:
    sage: _.type()        #optional
Expected:
    Tuple PositiveInteger
Got:
    Tuple(PositiveInteger)
**********************************************************************
3 items had failures:
   2 of  21 in __main__.example_0
   1 of   3 in __main__.example_19
   1 of   6 in __main__.example_22

@mwhansen
Copy link
Contributor

comment:4

Hi Bill,

I made a patch at #5111 which separates the FriCAS and the Axiom interfaces. Most of the functionality is still in axiom.py since it is common to both. Also, the improvements at #4036 are in that patch.

Could you make it so that the spkg does not install an executable named 'axiom'? Then, we can put that spkg up when that patch goes in.

Thanks,
--Mike

@mwhansen
Copy link
Contributor

comment:5

It looks like this is being taken care of at http://groups.google.com/group/fricas-devel/browse_thread/thread/3f6186988dc9683e?hl=en

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Aug 12, 2009

comment:6

Closing this as #6517 deals with a more recent version of FriCAS than the current ticket.

@sagetrac-mvngu sagetrac-mvngu mannequin closed this as completed Aug 12, 2009
@sagetrac-mvngu sagetrac-mvngu mannequin removed this from the sage-4.1.1 milestone Aug 12, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant