[sage-support] Re: cocalc

2017-08-11 Thread fidelbc
Hi,

Perhaps adding the mesh=True for each of the  parametric_plot3d calls will 
do the job?


var("r,theta,phi");
def coordfunc(r,theta,phi,switch,shift=0):
if switch=="yin":
return 
(r*sin(theta)*cos(phi)+shift,r*sin(theta)*sin(phi),r*cos(theta))
else:
return 
(-r*sin(theta)*cos(phi)+shift,r*cos(theta),r*sin(theta)*sin(phi))
   
yin=(parametric_plot3d(coordfunc(1,theta,phi,"yin",1),(theta,pi/4,3*pi/4),(phi,-3*pi/4,3*pi/4),mesh=True)+
  
parametric_plot3d(coordfunc(0.6,theta,phi,"yin",1),(theta,pi/4,3*pi/4),(phi,-3*pi/4,3*pi/4),color="yellow",mesh=True)+
  
 
parametric_plot3d(coordfunc(r,theta,-3*pi/4,"yin",1),(r,0.6,1),(theta,pi/4,3*pi/4),mesh=True)+
  
 
parametric_plot3d(coordfunc(r,theta,3*pi/4,"yin",1),(r,0.6,1),(theta,pi/4,3*pi/4),mesh=True)+
  
 
parametric_plot3d(coordfunc(r,pi/4,phi,"yin",1),(r,0.6,1),(phi,-3*pi/4,3*pi/4),mesh=True)+
  
 
parametric_plot3d(coordfunc(r,3*pi/4,phi,"yin",1),(r,0.6,1),(phi,-3*pi/4,3*pi/4),mesh=True)
  )
yang=(parametric_plot3d(coordfunc(1,theta,phi,"yang",-1),(theta,pi/4,3*pi/4),(phi,-3*pi/4,3*pi/4),mesh=True)+
  
parametric_plot3d(coordfunc(0.6,theta,phi,"yang",-1),(theta,pi/4,3*pi/4),(phi,-3*pi/4,3*pi/4),color="yellow",mesh=True)+
  
 
parametric_plot3d(coordfunc(r,theta,-3*pi/4,"yang",-1),(r,0.6,1),(theta,pi/4,3*pi/4),mesh=True)+
  
 
parametric_plot3d(coordfunc(r,theta,3*pi/4,"yang",-1),(r,0.6,1),(theta,pi/4,3*pi/4),mesh=True)+
  
 
parametric_plot3d(coordfunc(r,pi/4,phi,"yang",-1),(r,0.6,1),(phi,-3*pi/4,3*pi/4),mesh=True)+
  
 
parametric_plot3d(coordfunc(r,3*pi/4,phi,"yang",-1),(r,0.6,1),(phi,-3*pi/4,3*pi/4),mesh=True)
  )
show(yin+yang)

Hope this helps,
Fidel

On Friday, August 11, 2017 at 3:35:11 AM UTC-4, HG wrote:
>
> Hi,
>
> https://cocalc.com/projects/a29d19b9-8c4e-4c7e-a06d-8ae10c53a33f/files/yysagegrid.sagews
>
> I share this yin -yang... The mesh=True doesn't appear on the second 
> picture mais does on the first ?
>
> Any help ?
>
> Thanks
>
> Henri
>

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


[sage-support] Re: FInd all paths of given length n

2017-07-28 Thread fidelbc
There is a typo in the code above. The True argument belongs to the 
subgraph_search_iterator function, not the PathGraph, that is,

g.subgraph_search_iterator(graphs.PathGraph(3), induced=True)

On Thursday, July 27, 2017 at 10:16:29 AM UTC-4, fidelbc wrote:
>
> Not directly, but it shouldn't be hard to just keep track of which vertex 
> sets you have seen so far. Eg.
> seen = {}
> for p in g.subgraph_search_iterator(graphs.PathGraph(3, induced=True)):
> vxs = tuple(sorted(p))
> if vxs not in seen:
> seen[vxs]=True
> print vxs
>
> Note that you should include induced=True in the call to 
> subgraph_search_iterator, since induced is False by default.
>
> On Thursday, July 27, 2017 at 4:42:18 AM UTC-4, Selvaraja S wrote:
>>
>> Thanks for the response.
>>
>> sage: g=Graph(d)
>> sage: for p in g.subgraph_search_iterator(graphs.PathGraph(3)):
>> print(p)
>>
>> This is giving the all the paths of length 3. But I have one more 
>> question.
>>
>> Suppose $xyz$ is induced path of length 3. Note that $zyx$ is also 
>> induced path of length. 
>> Can I avoid this path?
>>
>>
>>
>> On Thursday, July 27, 2017 at 12:07:04 PM UTC+5:30, fidelbc wrote:
>>>
>>> Yes we can. Suppose the path has length k and thus k+1 vertices. Then 
>>> the following command returns an iterator over all lists of vertices that 
>>> induce paths on k+1 vertices in G.
>>>
>>> G.subgraph_search_iterator(graphs.PathGraph(k+1),induced=True)
>>>
>>> More on this may be found at [1].
>>>
>>> [1]; 
>>> http://doc.sagemath.org/html/en/reference/graphs/sage/graphs/generic_graph.html#sage.graphs.generic_graph.GenericGraph.subgraph_search_iterator
>>>
>>> On Thursday, July 27, 2017 at 12:37:31 AM UTC-4, Selvaraja S wrote:
>>>>
>>>> Let $G$ be a finite simple graph. 
>>>> Can we find all paths(induced ) of given length?
>>>>
>>>>
>>>> Thanks in advance.
>>>>
>>>>

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


[sage-support] Re: FInd all paths of given length n

2017-07-27 Thread fidelbc
Not directly, but it shouldn't be hard to just keep track of which vertex 
sets you have seen so far. Eg.
seen = {}
for p in g.subgraph_search_iterator(graphs.PathGraph(3, induced=True)):
vxs = tuple(sorted(p))
if vxs not in seen:
seen[vxs]=True
print vxs

Note that you should include induced=True in the call to 
subgraph_search_iterator, since induced is False by default.

On Thursday, July 27, 2017 at 4:42:18 AM UTC-4, Selvaraja S wrote:
>
> Thanks for the response.
>
> sage: g=Graph(d)
> sage: for p in g.subgraph_search_iterator(graphs.PathGraph(3)):
> print(p)
>
> This is giving the all the paths of length 3. But I have one more question.
>
> Suppose $xyz$ is induced path of length 3. Note that $zyx$ is also induced 
> path of length. 
> Can I avoid this path?
>
>
>
> On Thursday, July 27, 2017 at 12:07:04 PM UTC+5:30, fidelbc wrote:
>>
>> Yes we can. Suppose the path has length k and thus k+1 vertices. Then the 
>> following command returns an iterator over all lists of vertices that 
>> induce paths on k+1 vertices in G.
>>
>> G.subgraph_search_iterator(graphs.PathGraph(k+1),induced=True)
>>
>> More on this may be found at [1].
>>
>> [1]; 
>> http://doc.sagemath.org/html/en/reference/graphs/sage/graphs/generic_graph.html#sage.graphs.generic_graph.GenericGraph.subgraph_search_iterator
>>
>> On Thursday, July 27, 2017 at 12:37:31 AM UTC-4, Selvaraja S wrote:
>>>
>>> Let $G$ be a finite simple graph. 
>>> Can we find all paths(induced ) of given length?
>>>
>>>
>>> Thanks in advance.
>>>
>>>

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


[sage-support] Re: FInd all paths of given length n

2017-07-27 Thread fidelbc
Yes we can. Suppose the path has length k and thus k+1 vertices. Then the 
following command returns an iterator over all lists of vertices that 
induce paths on k+1 vertices in G.

G.subgraph_search_iterator(graphs.PathGraph(k+1),induced=True)

More on this may be found at [1].

[1]; 
http://doc.sagemath.org/html/en/reference/graphs/sage/graphs/generic_graph.html#sage.graphs.generic_graph.GenericGraph.subgraph_search_iterator

On Thursday, July 27, 2017 at 12:37:31 AM UTC-4, Selvaraja S wrote:
>
> Let $G$ be a finite simple graph. 
> Can we find all paths(induced ) of given length?
>
>
> Thanks in advance.
>
>

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


[sage-support] Re: Planar graph drawing

2015-10-19 Thread fidelbc
That is a very nice function. One thing to note is that having edges added 
in this way may bump up the running time above O(n), since we would have to 
be testing that planarity is preserved after adding a given edge.

I do agree that sometimes the drawings output by the planar layout are not 
what one expects, see here 

 
for example.

On Monday, October 19, 2015 at 5:09:14 PM UTC-4, Dominique Laurain wrote:
>
>
> Boost provides a make_maximal_planar function ... and this function can be 
> parametrized by a addEdgeVisitor
>
>
> http://www.boost.org/doc/libs/1_36_0/libs/graph/doc/make_maximal_planar.html
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Planar graph drawing

2015-10-19 Thread fidelbc
It is simpler to check if a graph is maximal planar. If you already know 
the graph is planar, then just check if it has 3n-6 edges. If it does, then 
it is maximal, otherwise it isn't.

What planar layout do you suggest for graphs that are not maximal planar?

f

On Monday, October 19, 2015 at 12:04:33 PM UTC-4, Dominique Laurain wrote:
>
>
> "Change the doc"
>
> yes, I am suggesting that for the planar layout; if the input graph is not 
> maximal planar
>
> and you can add a simple function checking that one graph is maximal 
> planar (simple to code : loop on each couple of vertices, and add edge made 
> of this couple, if adding make graph not planar then break in the loop. 
> return not maximal ...end of loop, return maximal)
>
> Dominique
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Planar graph drawing

2015-10-18 Thread fidelbc
Hello Dominique,

One thing to note here is that the graph you are trying to plot is not a 
planar triangulation. 

The planar drawings output by sage are precisely those proposed by Schnyder 
for planar triangulations. 
What happens when you ask for a planar drawing of a planar non triangulated 
graph? 
1. Augment the input graph to a triangulation by adding edges (if needed).
2. Obtain the coordinates for the planar drawing of the augmented graph.
3. Use those positions for the input graph (deleting edges will preserve 
planarity of the drawing).

You are right in that the drawings output by sage do not correspond to the 
planar embedding. The get_embedding method says vertices are ordered in 
clockwise order whereas the drawing output by sage displays them in 
counter-clockwise order.

There is an interesting aspect of Schnyder drawings though. They have been 
generalized to planar 3-connected graphs and that yields drawings still in 
an O(n)xO(n) grid where each of the faces is convex  (this might be 
something interesting to implement ;-).

Unfortunately the graph you are trying to draw is not even 3-connected. The 
"problem" with this is that the embedding may not be unique. 

Hope this helped clarifying further some of your questions.

Best,
Fidel

On Sunday, October 18, 2015 at 12:56:14 PM UTC-4, Dominique Laurain wrote:
>
>
> Sorry, maybe "clockwise" doesn't mean anything with two neighbours 
>
> Mea culpa
>
> Dominique.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Building SageMath 6.8: gf2x, ncurses error in ArchLinux

2015-07-30 Thread fidelbc
I have compiled the sage 6.8 source code twice. Just wanted to add that the 
two proposed solutions from above work.

On Thursday, July 30, 2015 at 12:53:38 AM UTC-4, fidelbc wrote:

 These seem to be known issues with gcc version = 5, see [1] and [2].

 A possible workaround is to use the attached patch (adapted to fix the 
 issue for gcc 5.2.0).

 For anyone using ArchLinux with llvm installed and trying to follow 
 Volker's suggestion, you may want to try using

 $ export LD_PRELOAD=/usr/lib/libstdc++.so.6

 before compiling (as suggested in [3]). This will allow you to compile gcc 
 4.9.2 without any issues.

 Fidel

 [1]: http://trac.sagemath.org/ticket/18580
 [2]: http://trac.sagemath.org/ticket/18301
 [3]: https://aur4.archlinux.org/packages/gcc48/

 On Monday, July 27, 2015 at 1:43:54 PM UTC-4, fidelbc wrote:

 Hello,

 I'm trying to build sage on arch linux:

 $ uname -a
 Linux 4.1.2-2-ARCH #1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015 x86_64 
 GNU/Linux

 The packages that seem to fail to build are gf2x and ncurses (please see 
 attached logs).

 I usually build sage using
 MAKE=make -j4

 Any help on trying to get the build to succeed are greatly appreciated!
 Fidel

 PS I used to be able to build sage without any issues, but after around 
 v6.6 this was no longer the case. Do you think these are OS specific issues?



-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Building SageMath 6.8: gf2x, ncurses error in ArchLinux

2015-07-29 Thread fidelbc
Hello Paul,

Unfortunately I don't have access to GCC 4.9.x. I think after Volker's 
suggestion GCC 4.9.2 was supposed to be built, but it failed.

I did try to build the source you suggested using GCC 5.2.0 and it failed 
again. Please find attached the compilation log (the error seems to be the 
same). 

Best,
Fidel


On Wednesday, July 29, 2015 at 12:41:42 PM UTC-4, William wrote:

 (corrected subject) 


 -- Forwarded message -- 
 From: William Stein wst...@gmail.com javascript: 
 Date: Wed, Jul 29, 2015 at 12:08 AM 
 Subject: Fwd: message for sage-support 
 To: sage-support sage-s...@googlegroups.com javascript: 




 -- Forwarded message -- 
 From: paul zimmermann paul.zi...@inria.fr javascript: 
 Date: Tuesday, July 28, 2015 
 Subject: message for sage-support 
 To: wst...@gmail.com javascript: 


Hi William, 

 please could you post the message below for me, in case it does not reach 
 sage-support? 
 Thanks, 
 Paul 

  Authentication-Results: zfront2.inria.fr (amavisd-new); 
dkim=pass (2048-bit key) header.d=google.com 
  From: Mail Delivery Subsystem mailer...@google.com javascript: 
  Date: Wed, 29 Jul 2015 06:49:47 + 
  
  Hello paul.zi...@inria.fr javascript:, 
  
  We're writing to let you know that the group you tried to contact 
 (sage-support) may not exist, or you may not have permission to post 
 messages to the group. A few more details on why you weren't able to post: 
  
   * You might have spelled or formatted the group name incorrectly. 
   * The owner of the group may have removed this group. 
   * You may need to join the group before receiving permission to post. 
   * This group may not be open to posting. 
  
  If you have questions related to this or any other Google Group, visit 
 the Help Center at http://groups.google.com/support/. 
  
  Thanks, 
  
  Google Groups 
  
  
  
  - Original message - 
  
  X-Received: by 10.152.182.226 with SMTP id 
 eh2mr15365619lac.0.1438152587799; 
  Tue, 28 Jul 2015 23:49:47 -0700 (PDT) 
  Return-Path: paul.zi...@inria.fr javascript: 
  Received: from mail2-relais-roc.national.inria.fr (
 mail2-relais-roc.national.inria.fr. [192.134.164.83]) 
  by gmr-mx.google.com with ESMTPS id 
 v8si639004wiw.1.2015.07.28.23.49.47 
  for sage-s...@googlegroups.com javascript: 
  (version=TLS1 cipher=RC4-SHA bits=128/128); 
  Tue, 28 Jul 2015 23:49:47 -0700 (PDT) 
  Received-SPF: pass (google.com: best guess record for domain of 
 paul.zi...@inria.fr javascript: designates 192.134.164.83 as permitted 
 sender) client-ip=192.134.164.83; 
  Authentication-Results: gmr-mx.google.com; 
 spf=pass (google.com: best guess record for domain of 
 paul.zi...@inria.fr javascript: designates 192.134.164.83 as permitted 
 sender) smtp.mail=paul.zi...@inria.fr javascript: 
  X-IronPort-AV: E=Sophos;i=5.15,569,1432591200; 
 d=scan'208;a=171966863 
  Received: from tarte.loria.fr ([152.81.15.145]) 
by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA; 29 
 Jul 2015 08:49:47 +0200 
  Date: Wed, 29 Jul 2015 08:49:47 +0200 
  Message-Id: mwoaiva...@tarte.loria.fr javascript: 
  From: paul zimmermann paul.zi...@inria.fr javascript: 
  To: sage-s...@googlegroups.com javascript: 
  Subject: Building SageMath 6.8: gf2x, ncurses error in ArchLinux 
  
 Hi, 
  
  I am a developer of gf2x. I looked at the log file. It seems the TC3 
 result 
  is wrong up from degree 703. Please could you try to compile gf2x with a 
  previous version of gcc (say 4.9.x), by running the following, and send 
 us 
  the corresponding log? You might also want to try again with GCC 5.2.0 
 to 
  check the error is deterministic, and is independent from the Sage 
 patches. 
  
  $ wget 
 https://gforge.inria.fr/frs/download.php/file/30873/gf2x-1.1.tar.gz 

  $ tar xf gf2x-1.1.tar.gz 
  $ cd gf2x-1.1 
  $ ./configure 
  $ make 
  $ make tune-lowlevel 
  $ make tune-toom TOOM_TUNING_LIMIT=100 
  
  Best regards, 
  Paul Zimmermann 
  



 -- 
 Sent from my massive iPhone 6 plus. 


 -- 
 William (http://wstein.org) 


-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


gf2x-1.1.log
Description: Binary data


[sage-support] Re: Building SageMath 6.8: gf2x, ncurses error in ArchLinux

2015-07-29 Thread fidelbc
These seem to be known issues with gcc version = 5, see [1] and [2].

A possible workaround is to use the attached patch (adapted to fix the 
issue for gcc 5.2.0).

For anyone using ArchLinux with llvm installed and trying to follow 
Volker's suggestion, you may want to try using

$ export LD_PRELOAD=/usr/lib/libstdc++.so.6

before compiling (as suggested in [3]). This will allow you to compile gcc 
4.9.2 without any issues.

Fidel

[1]: http://trac.sagemath.org/ticket/18580
[2]: http://trac.sagemath.org/ticket/18301
[3]: https://aur4.archlinux.org/packages/gcc48/

On Monday, July 27, 2015 at 1:43:54 PM UTC-4, fidelbc wrote:

 Hello,

 I'm trying to build sage on arch linux:

 $ uname -a
 Linux 4.1.2-2-ARCH #1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015 x86_64 
 GNU/Linux

 The packages that seem to fail to build are gf2x and ncurses (please see 
 attached logs).

 I usually build sage using
 MAKE=make -j4

 Any help on trying to get the build to succeed are greatly appreciated!
 Fidel

 PS I used to be able to build sage without any issues, but after around 
 v6.6 this was no longer the case. Do you think these are OS specific issues?


-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.
From 67c76ca18bfba62610a9dc3dfe5215422d836a6c Mon Sep 17 00:00:00 2001
From: fidbc fidbc.c...@gmail.com
Date: Wed, 29 Jul 2015 23:56:43 -0400
Subject: [PATCH] Added fix for gcc 5.2.0

---
 build/pkgs/gf2x/spkg-install| 2 +-
 .../ncurses/patches/work_around_changed_output_of_GNU_cpp_5.x.patch | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/build/pkgs/gf2x/spkg-install b/build/pkgs/gf2x/spkg-install
index ee7e6a0..bf9d2e7 100755
--- a/build/pkgs/gf2x/spkg-install
+++ b/build/pkgs/gf2x/spkg-install
@@ -26,7 +26,7 @@ touch aclocal.m4 configure Makefile.in gf2x/gf2x-config.h.in
 if [ $SAGE_DEBUG = yes ]; then
 echo Building a debug version of gf2x.
 export CFLAGS=-O0 -g $CFLAGS
-elif $CC --version 2/dev/null |grep 'gcc.* 5[.]1' /dev/null; then
+elif $CC --version 2/dev/null |grep 'gcc.* 5[.][12]' /dev/null; then
 echo Using compiler flags to work around problems with GCC 5.1 (Trac #18580)
 export CFLAGS=-O2 -fno-forward-propagate -g $CFLAGS
 else
diff --git a/build/pkgs/ncurses/patches/work_around_changed_output_of_GNU_cpp_5.x.patch b/build/pkgs/ncurses/patches/work_around_changed_output_of_GNU_cpp_5.x.patch
index af82739..df8cb8a 100644
--- a/build/pkgs/ncurses/patches/work_around_changed_output_of_GNU_cpp_5.x.patch
+++ b/build/pkgs/ncurses/patches/work_around_changed_output_of_GNU_cpp_5.x.patch
@@ -19,7 +19,7 @@ output of 'cpp' w.r.t. line directives [1].  Anyway, the patch fixes the issue.)
 +# Work around unexpected output of GCC 5.1.0's cpp w.r.t. #line directives
 +# by simply suppressing them:
 +case `$1 -dumpversion 2/dev/null` in
-+5.[01].*)  # assume a broken one
++5.[012].*)  # assume a broken one
 +preprocessor=$1 -P -DNCURSES_INTERNALS -I../include
 +;;
 +*)
-- 
2.5.0



[sage-support] Building SageMath 6.8: gf2x, ncurses error in ArchLinux

2015-07-27 Thread fidelbc
Hello,

I'm trying to build sage on arch linux:

$ uname -a
Linux 4.1.2-2-ARCH #1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015 x86_64 
GNU/Linux

The packages that seem to fail to build are gf2x and ncurses (please see 
attached logs).

I usually build sage using
MAKE=make -j4

Any help on trying to get the build to succeed are greatly appreciated!
Fidel

PS I used to be able to build sage without any issues, but after around 
v6.6 this was no longer the case. Do you think these are OS specific issues?

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


gf2x-1.1.p1.log
Description: Binary data


ncurses-5.9.20131221.log
Description: Binary data


[sage-support] Re: show graph with sage script

2015-07-24 Thread fidelbc
Have you tried using the *show* command?

If *P* is the graphics object you can try using 

*show(P)*It might be helpful if you give more details about which version 
of sage you are using and in which mode (command line, notebook,...).

On Tuesday, July 21, 2015 at 5:58:36 AM UTC-4, avi kaur wrote:

 Hello 

 I want to plot equation with sage script.When I run this within 
 script, It shows: 
 Graphics object consisting of 1 graphics primitive 
 but it doesn't show the graph. How to show it? 



-- 
 Avi kaur 
 Blog: https://avikashyap620.wordpress.com 
 BlogPost: http://avikaur.blogspot.in/ 
 There is no lacking of opportunity, The thing is you do not want to 
 see It 


-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: integrating a matrix

2015-07-16 Thread fidelbc
Thanks for the input Nils!

On Thursday, July 16, 2015 at 4:04:01 AM UTC-4, Nils Bruin wrote:



 On Thursday, July 16, 2015 at 3:57:20 AM UTC+2, fidelbc wrote:

 Maybe you can try implementing something along these lines

 *def integrate_matrix(A):*
 *m = A.nrows()*
 *n = A.ncols()*
 *return matrix(m,n, [entry.integrate() for row in A for entry in row 
 ])*

 If you want to have the entries of a matrix you can get them without 
 having to construct intermediate rows:

 matrix(m,n, [entry.integrate() for entry in A.list()]

  


-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: integrating a matrix

2015-07-15 Thread fidelbc
Maybe you can try implementing something along these lines

*def integrate_matrix(A):*
*m = A.nrows()*
*n = A.ncols()*
*return matrix(m,n, [entry.integrate() for row in A for entry in row ])*


On Wednesday, July 15, 2015 at 12:33:21 PM UTC-4, avi kaur wrote:

 On Wed, Jul 15, 2015 at 5:55 PM, Dima Pasechnik dim...@gmail.com 
 javascript: wrote:
  It's not clear what this means mathematically, please explain.
 I have to solve out the following problem with sage math.


 ​


 --  
 Avi kaur
 Blog: https://avikashyap620.wordpress.com
 There is no lacking of opportunity, The thing is you do not want to 
 see It




-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] [plot3d in cloud] show function bug?

2015-07-09 Thread fidelbc
Hello everyone,

In cloud.sagemath; is there a bug in the behaviour of the code below? 
P.show() just outputs Graphcs3d Object.

P=point3d([0,0,0])
P.show()
|Graphics3d Object

However

P

and

show(P)

do show the plot.

This question came up in [1].

[1] 
http://ask.sagemath.org/question/27281/plotting-3d-points-in-a-certain-way/

Thanks,
Fidel

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: sage 6.6: libgd may have failed to build

2015-05-01 Thread fidelbc
Issue solved. In case anyone using arch linux runs into the same issue, you 
can drop the attached patch into the build/pkgs/libgd/patches/ directory.

The problem seems to be with the libvpx library (which was recently 
updated). For more details see:

https://bugs.gentoo.org/show_bug.cgi?id=547310#c8

Fidel

On Wednesday, April 29, 2015 at 11:39:44 PM UTC-4, fidelbc wrote:

 Hello,

 Just trying to build sage on arch linux:

 [fidbc@avalancha ~]$ uname -a
 Linux avalancha 3.19.3-3-ARCH #1 SMP PREEMPT Wed Apr 8 14:10:00 CEST 2015 
 x86_64 GNU/Linux

 There seems to be an error while building libgd. A couple of possibly 
 related errors were reported on sage-release:

 https://groups.google.com/d/topic/sage-release/flXnvNmWN0c/discussion

 I haven't been able to build sage successfully though. When updating I 
 usually just move my current sage root directory to sage_old, and then I 
 just clone from the github repo. Could this have anything to do?

 I have tried make distclean and also cloning the github repo all over 
 without success. I have the exact same issue with another computer (same 
 OS).

 Please let me know if there is any other info I should provide.

 Thanks,
 Fidel




-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.
There seems to be an issue with the updated libvpx.
For details see:
* https://bugs.gentoo.org/show_bug.cgi?id=547310
diff -druN libgd-2.1.0.old/src/webpimg.c libgd-2.1.0.new/src/webpimg.c
--- libgd-2.1.0.old/src/webpimg.c	2013-06-25 05:58:23.0 -0400
+++ libgd-2.1.0.new/src/webpimg.c	2015-05-01 12:57:42.242995938 -0400
@@ -711,14 +711,14 @@
 codec_ctl(enc, VP8E_SET_STATIC_THRESHOLD, 0);
 codec_ctl(enc, VP8E_SET_TOKEN_PARTITIONS, 2);
 
-vpx_img_wrap(img, IMG_FMT_I420,
+vpx_img_wrap(img, VPX_IMG_FMT_I420,
  y_width, y_height, 16, (uint8*)(Y));
-img.planes[PLANE_Y] = (uint8*)(Y);
-img.planes[PLANE_U] = (uint8*)(U);
-img.planes[PLANE_V] = (uint8*)(V);
-img.stride[PLANE_Y] = y_stride;
-img.stride[PLANE_U] = uv_stride;
-img.stride[PLANE_V] = uv_stride;
+img.planes[VPX_PLANE_Y] = (uint8*)(Y);
+img.planes[VPX_PLANE_U] = (uint8*)(U);
+img.planes[VPX_PLANE_V] = (uint8*)(V);
+img.stride[VPX_PLANE_Y] = y_stride;
+img.stride[VPX_PLANE_U] = uv_stride;
+img.stride[VPX_PLANE_V] = uv_stride;
 
 res = vpx_codec_encode(enc, img, 0, 1, 0, VPX_DL_BEST_QUALITY);
 


[sage-support] sage 6.6: libgd may have failed to build

2015-04-29 Thread fidelbc
Hello,

Just trying to build sage on arch linux:

[fidbc@avalancha ~]$ uname -a
Linux avalancha 3.19.3-3-ARCH #1 SMP PREEMPT Wed Apr 8 14:10:00 CEST 2015 
x86_64 GNU/Linux

There seems to be an error while building libgd. A couple of possibly 
related errors were reported on sage-release:

https://groups.google.com/d/topic/sage-release/flXnvNmWN0c/discussion

I haven't been able to build sage successfully though. When updating I 
usually just move my current sage root directory to sage_old, and then I 
just clone from the github repo. Could this have anything to do?

I have tried make distclean and also cloning the github repo all over 
without success. I have the exact same issue with another computer (same 
OS).

Please let me know if there is any other info I should provide.

Thanks,
Fidel


-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


libgd-2.1.0.p0.log
Description: Binary data