Is there any way to handle scientific precision in base 10 in a simple
way, using sage ?

Alternatively, are there any libraries that will do something like
that ?

Using \sage{RIF10(RR10(#1))} in a LaTeX document (#1 is the argument)
leaves numbers like 6.0421?e-27. Use of question marks like that is
unheard of in experimental sciences (at least in journal articles). In
any case, a simpler, more direct approach is preferable (all these
field definitions leave open the chance for a mistake that could lead
to an unacceptable loss of accuracy).

For instance, something like sprintf('%e12.3',#1) would be lovely.

The sense I have gotten so far is that numerical related work is an
afterthought in Sage and that it is really a professional
mathematician's workbench that could be coaxed or tweaked into being
useful for scientists who use math / numerics as a tool, and not an
end in itself.

I have nothing against mathematicians (btw).

On Mar 1, 3:23 pm, sm123123 <[email protected]> wrote:
> No.
>
> I use matlab extensively for data analysis and have a large library of
> code already written in matlab.
>
> I do not want to invest the time required in porting all that.
>
> On Mar 1, 12:16 pm, Maxim <[email protected]> wrote:
>
>
>
> > I'm affraid I cannot help you on the Matlab front (I don't have it
> > installed), but have you considered using pyplot (from matplotlib)?
> > It's basically a clone of the Matlab plotting framework. I've used it
> > recently to make a semilog plot with excellent results.
>
> > On 1 mar, 12:57, sm123123 <[email protected]> wrote:
>
> > > Sigh.
>
> > > When I issue a plot() command using the Matlab interface, I get a
> > > syntax error.
>
> > > On Mar 1, 5:43 am, Dan Drake <[email protected]> wrote:
>
> > > > On Mon, 28 Feb 2011 at 11:32AM -0800, sm123123 wrote:
> > > > > It seems that I was unable to convey the issue at hand. For
> > > > > Mathematica, I can issue a Plot[] command, followed by an Export[] and
> > > > > then use \includegraphics to use the generated plot (the its not good
> > > > > enough section in the SageTeX manual).
>
> > > > > I cannot do the same for matlab.
>
> > > > > Sage does have a matlab interface which (presumably) can accept
> > > > > textual commands.
>
> > > > What you'll need to do is use that Matlab interface to generate and save
> > > > your plot, then use \includegraphics. Sadly, I don't know enough about
> > > > Matlab or the Sage interface to it to help you do that. But if Matlab
> > > > can save plots to a file and our interface can let you issue those
> > > > commands to Matlab, it should work. Let me know if you figure it out so
> > > > I can include a bit about that in the SageTeX manual.
>
> > > > Dan
>
> > > > --
> > > > ---  Dan Drake
> > > > -----  http://mathsci.kaist.ac.kr/~drake
> > > > -------
>
> > > >  signature.asc
> > > > < 1KViewDownload

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to