[sage-support] Re: errors when defining R functions

2014-02-22 Thread Emmanuel Charpentier
I get normal error detection.

In a worksheet (in 'r' mode) :

bar-function(x) {
y-x+3)
return(y)
}

gives :

Erreur : ')' inattendu(e) in:
bar-function(x) {
y-x+3)
Erreur : objet 'y' introuvable
Erreur : '}' inattendu(e) in }


In a terminal :

charpent@asus16-ec:~$ sage -R

R version 3.0.2 (2013-09-25) -- Frisbee Sailing
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-unknown-linux-gnu (64-bit)

R est un logiciel libre livré sans AUCUNE GARANTIE.
Vous pouvez le redistribuer sous certaines conditions.
Tapez 'license()' ou 'licence()' pour plus de détails.

R est un projet collaboratif avec de nombreux contributeurs.
Tapez 'contributors()' pour plus d'information et
'citation()' pour la façon de le citer dans les publications.

Tapez 'demo()' pour des démonstrations, 'help()' pour l'aide
en ligne ou 'help.start()' pour obtenir l'aide au format HTML.
Tapez 'q()' pour quitter R.

[Sauvegarde de la session précédente restaurée]

 bar-function (x) {
+ y-x+3)
Erreur : ')' inattendu(e) in:
bar-function (x) {
y-x+3)
 

As William said, an example is necessary...

HTH,
--
Emmanuel Charpentier
Le vendredi 21 février 2014 17:18:59 UTC+1, Fred Gruber a écrit :

 Hi
 I have noticed that when I'm in R mode and when define R functions 
 sometimes sage doesn't display errors if there are any. It just doesn't 
 define the function.

 Has anyone else noticed this? Is there anything I can do to get sage to 
 display the errors. It is hard to debug code when sage doesn't tell you 
 where is the problem.

 thanks
 F



-- 
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/groups/opt_out.


[sage-support] WHAT HAPPENED ABOUT ASK.SAGEMATH.ORG?

2014-02-22 Thread cjsh100 cjsh100
all yesterday was attacked by spams.who ?

-- 
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/groups/opt_out.


[sage-support] Re: WHAT HAPPENED ABOUT ASK.SAGEMATH.ORG?

2014-02-22 Thread Jason Grout

On 2/21/14 11:14 PM, cjsh100 cjsh100 wrote:

all yesterday was attacked by spams.who ?



See https://groups.google.com/forum/#!topic/sage-devel/9FEtOJHecf4

Thanks,

Jason


--
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/groups/opt_out.


[sage-support] How to extract value from array

2014-02-22 Thread Santanu Sarkar
Following code  I want to assign a value.


var('a,t,x')
T=[t==1, a==2]

Now I want to make x=t which is 1 in this case.
That is x will be 1.

-- 
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/groups/opt_out.