Re: [sage-devel] Re: Comparison and logarithm on .py vs. interactive

2016-08-27 Thread Ralf Stephan
On Saturday, August 27, 2016 at 7:05:28 AM UTC+2, Jori Mäntysalo wrote:
>
> But shouldn't it work in any case? I.e. comparison of log(a+b*c^2...) to 
> some number should work when a,b,c... are sage Integers. 
>

log(integer) will not be expanded numerically except for log(0) and log(1).
If you want it expanded, either give a float argument, eg log(2.), or
append n().

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


[sage-devel] How to use Sage's doc builder off the source tree

2016-08-27 Thread Simon King
Hi!

It has been a long time since I was considering Sage's doc builder. So,
please allow me to ask, since it is conceivable that I missed recent
developments:

- Assume you have bunch of cython and python files sitting in a folder
  that is not part of the SageMath src tree. Think of a pip-installable
  package. Its docstrings are complient with what we do in the src tree.
  It used to be the case that SageMath packages could provide
  documentation in SAGE_ROOT/local/share/doc. How can I use Sage's
  doc-builder to that aim? My old solution of using a modified copy
  of a very outdated version of Sage's doc-builder shipped with my spkg
  certainly isn't a good solution.
- Is it possible to have links from the package's documentation to
  SageMath's documentation? IIRC, it used to be a problem, but perhaps
  it works now.

Best regards,
Simon

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


[sage-devel] Re: How to use Sage's doc builder off the source tree

2016-08-27 Thread Samuel Lelievre


Le samedi 27 août 2016 14:40:26 UTC+2, Simon King a écrit :
>
> Hi! 
>
> It has been a long time since I was considering Sage's doc builder. So, 
> please allow me to ask, since it is conceivable that I missed recent 
> developments: 
>
> - Assume you have bunch of cython and python files sitting in a folder 
>   that is not part of the SageMath src tree. Think of a pip-installable 
>   package. Its docstrings are complient with what we do in the src tree. 
>   It used to be the case that SageMath packages could provide 
>   documentation in SAGE_ROOT/local/share/doc. How can I use Sage's 
>   doc-builder to that aim? My old solution of using a modified copy 
>   of a very outdated version of Sage's doc-builder shipped with my spkg 
>   certainly isn't a good solution. 
> - Is it possible to have links from the package's documentation to 
>   SageMath's documentation? IIRC, it used to be a problem, but perhaps 
>   it works now. 
>
> Best regards, 
> Simon
>

Hi Simon,

not really answering your question, but just to mention there are
some thoughts on this on the wiki page "Code sharing workflow":

https://wiki.sagemath.org/CodeSharingWorkflow

Best,
Samuel

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


[sage-devel] Re: The Sage Wiki

2016-08-27 Thread Eric Gourgoulhon
Hi,

Thanks for the update of the wiki front page.
I've added links to two recent wiki pages resulting from SD74:
- On development models for sharing (experimental) code 
 (in the section "Special 
Discussion Pages")
- K3D-jupyter 3D visualisation in jupyter notebook 
 (in the section "Demonstrations of 
Graphical Capabilities")

Best wishes,

Eric.

Le vendredi 26 août 2016 18:12:01 UTC+2, Johan S. R. Nielsen a écrit :
>
> Hi everyone, 
>
> I just edited the front page of http://wiki.sagemath.com so that it 
> appears less embarrassingly out of date. I restructured it so that it is 
> more clear that it is a place for certain developer organization (mostly 
> SageDays), so that it now less pretends to be a very lively place with 
> frequent updates everywhere (or rather, so that it is honest about where 
> it is out-of-date). 
>
> I stuffed links to lots of sub-pages under headlines marked out-of-date. 
> If you disagree or update one of those sub-pages, please just put the 
> link under some appropriate headline not marked out-of-date :-) 
>
> Best, 
> Johan 
>

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


[sage-devel] Re: Comparison and logarithm on .py vs. interactive

2016-08-27 Thread leif
Ralf Stephan wrote:
> On Saturday, August 27, 2016 at 7:05:28 AM UTC+2, Jori Mäntysalo wrote:
> 
> But shouldn't it work in any case? I.e. comparison of
> log(a+b*c^2...) to
> some number should work when a,b,c... are sage Integers.
> 
> 
> log(integer) will not be expanded numerically except for log(0) and log(1).
> If you want it expanded, either give a float argument, eg log(2.), or
> append n().

N() wasn't the problem, but (also) rounding:

(s is 12 here.)

sage: n*log(n, 2)
24
sage: n*log(n, 2r)
8*log(8)/log(2)
sage: N(n*log(n, 2r))
24.0
sage: 2*s < n*log(n, 2)
False
sage: 2*s > n*log(n, 2)
False
sage: 2*s > n*log(n, 2r)
24 > 8*log(8)/log(2)
sage: bool(2*s > n*log(n, 2r))
True
sage: bool(2r*s > n*log(n, 2r))
True
sage: bool(2r*s > n*log(n, 2))
False
sage: 24 > N(n*log(n, 2r))
True


-leif


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


[sage-devel] Re: The Sage Wiki

2016-08-27 Thread mmarco
Since we are talking about the wiki... I would propose to use another 
default theme. From my perspective, the default theme looks much worse than 
other possibilities:

https://moinmo.in/ThemeMarket

Even if we don't want to install anything, just changing the default to the 
righsidebar one (already installed) would be an improvement.

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


[sage-devel] Re: [sage-support] Re: (William Stein) "my top priority right now is to **make a lot of money**"

2016-08-27 Thread rjf
I just hope that William places a higher priority on food, rent, etc.

There are probably easier ways for him to make a lot of money..

If he succeeds he could buy food, pay rent,(etc) and donate to Sage, also.

See https://www.simonsfoundation.org/about-us/

for example.


>

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