On Feb 23, 8:50 am, Manjusha Joshi <[email protected]> wrote:
> Thanks William!
>
>
>
>
>
>
>
>
>
>
>
> >> In new worksheet, I computed value of say d using scilab
> >> e.g.
> >> % scilab
> >> A=[1 2 ; -3 4]
> >> d=det(A)
>
> >>  output is :
>
> >> A  =
>
> >>    1.    2.
> >>  - 3.    4.
> >>  d  =
>
> >>    10.
>
> >> Now I want tot use value of d with some other software say R.
>
> >>  e=d+1
>
> >> Error: object 'd' not found
>
> >> How can I use values calculated from other software in same worksheet
> >> with different software?
>
> > Here's an example:
>
> >http://sagenb.org/home/pub/4369/
>
> It is working!
> How ever, it is difficult to understand the syntax.
> Is it like %s get replaced by the values  calculated by %scilab('d')?
> Is 's' in %s has some special meaning? I searched on net could not
> find any answer.

See http://docs.python.org/tutorial/inputoutput.html#old-string-formatting
- this is to format the result of scilab('d') as a string in what is
used.

For newer versions of this (usable in Sage when 5.0 is released, I'm
sure), see 
http://docs.python.org/tutorial/inputoutput.html#fancier-output-formatting.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
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-edu?hl=en.

Reply via email to