Hi,

On Tuesday 17 Jul 2012, Virendra Sule wrote:
> Thanks Martin for the help. I find it very difficult to search for help in
> SAGE. Students in my class have written a lot of code in SAGE for number
> theory calculations but none for Boolean functions.
> 
> In the following what is function f, it looks like a random element of R.

You should play with inline help a bit, e.g., 

sage: R.random_element? 

will tell you information about that function.

> I
> suppose f.subs(x=1) substitutes this value in f.

Correct, see:

sage: f.subs?

> So for the specific random
> f chosen at the time this function is yz. What does the call f(*G) mean?

sage: f(x,y,z) calls f on x,y,z. G is a list of length three and * turns that 
into three different arguments for f's call. This is not a Sage feature but a 
feature of the Python language. 

Cheers,
Martin

--
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
_www: http://martinralbrecht.wordpress.com/
_jab: [email protected]

-- 
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