2016-09-04 19:55:46 -0500 | received badge | ● Famous Question (source) |

2014-12-24 02:55:32 -0500 | received badge | ● Notable Question (source) |

2013-07-18 03:46:34 -0500 | received badge | ● Popular Question (source) |

2011-08-01 09:43:17 -0500 | commented answer | Assigning variable values in a program Using the global namespace worked great for my application. Thanks for the quick response. |

2011-08-01 09:42:31 -0500 | received badge | ● Supporter (source) |

2011-08-01 08:09:57 -0500 | asked a question | Assigning variable values in a program For a cryptography application, I want to assigned values of 0 or 1 to the following variables (x0, x1, x2, ..., x128). I want to define a function to take a hexadecimal representation of the 128 bits and assigned a 0 or 1 to each variable. This can easily be done manually in sage by simply stating: But I'm having finding a way to include this type of variable assignment in a function. I can do it by writting to a file and loading the file in Sage, but that required manual intervention to load the file. Sorry if this is a trivial question, but I couldn't find an answer in the documentation Thanks! |

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.