Re: [sage-support] Issue with ticket number #29146

2017-03-04 Thread Ashutosh Ahelleya
I just forwarded this message in the maxima mailing list, so that we draw 
some significant conclusion of the type of constant used.  

-- Forwarded message --
From: Ashutosh Ahelleya 
Date: Sun, Mar 5, 2017 at 11:08 AM
Subject: Issue regarding the parameters returned while solving equations
To: maxima-disc...@lists.sourceforge.net


Hello,

In the solutions of equations solved, there are constants having unique 
alphabet assigned, and each one of them signifying the type of constant. 
While solving the equation:

> solve(x==x,x)
>
A constant r1 is returned. I wanted to know if r1 is a constant reflecting 
a real number or complex number or it is just an arbitrary constant. After 
referring to the following links too, nothing significant could be 
concluded about the type of constant r1.

[1]
http://maxima.sourceforge.net/docs/manual/maxima_20.html#g_t_0025rnum_005flist
[2] http://maxima.sourceforge.net/docs/manual/maxima_20.html#IDX806

Thanks and Regards,  
Ashutosh Ahelleya 
B.Tech CSE
Amrita University 
| Blog | Github | 





-- 
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 https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Issue with ticket number #29146

2017-03-04 Thread Ashutosh Ahelleya
Yea. That would be a better idea. In the worst case, I will just change the
documentation.


Ashutosh Ahelleya 
B.Tech CSE
Amrita University 
| Blog | Github |


-- 
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 https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Issue with ticket number #29146

2017-03-04 Thread kcrisman


On Saturday, March 4, 2017 at 10:41:20 AM UTC-5, Ashutosh Ahelleya wrote:
>
> Heyy,
>
> I want a confirmation for selecting an of the options above i.e. I add a 
> new parameter signifying a complex number or I just change the 
> documentation.
>
>
>
I am pretty sure that we shouldn't mess with Maxima arbitrarily to have 
solve's parameters be "complex" versus "real".  See 
http://maxima.sourceforge.net/docs/manual/maxima_20.html#IDX806 - "The 
symbols %r are used to denote arbitrary constants in a solution."  So 
perhaps one could just change the documentation to indicate it is an 
arbitrary constant in whatever field one is supposedly solving over.  OR 
you can ask on the Maxima list - perhaps that is the best option.  (Robert 
Dodier hangs out here too and may have some comments.)  I do think that 
they chose %r was for real (convenience, and %c is taken for an arbitrary 
integration constant).  See also 
http://maxima.sourceforge.net/docs/manual/maxima_20.html#g_t_0025rnum_005flist 

-- 
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 https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] crash report

2017-03-04 Thread Saddat Hasan


-- 
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 https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.
***

IPython post-mortem report

{'commit_hash': u'5c9c918',
 'commit_source': 'installation',
 'default_encoding': 'UTF-8',
 'ipython_path': 
'/home/dr_zola/SageMath/local/lib/python2.7/site-packages/IPython',
 'ipython_version': '5.1.0',
 'os_name': 'posix',
 'platform': 'Linux-4.9.13-200.fc25.x86_64-x86_64-with-fedora-25-Twenty_Five',
 'sys_executable': '/home/dr_zola/SageMath/local/bin/python',
 'sys_platform': 'linux2',
 'sys_version': '2.7.13 (default, Jan 16 2017, 00:54:30) \n[GCC 6.3.1 20161221 
(Red Hat 6.3.1-1)]'}

***



***

Crash traceback:

--
--
ImportError Python 2.7.13: /home/dr_zola/SageMath/local/bin/python
  Sat Mar  4 23:59:55 2017
A problem occurred executing Python code.  Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.
/home/dr_zola/SageMath/src/bin/sage-ipython in ()
  1 #!/usr/bin/env python
  2 # -*- coding: utf-8 -*-
  3 """
  4 Sage IPython startup script.
  5 """
  6 
  7 from sage.repl.interpreter import SageTerminalApp
  8 
  9 app = SageTerminalApp.instance()
---> 10 app.initialize()
global app.initialize = >
 11 app.start()

 in initialize(self=, argv=None)

/home/dr_zola/SageMath/local/lib/python2.7/site-packages/traitlets/config/application.pyc
 in catch_config_error(method=, 
app=, *args=(None,), **kwargs={})
 59 
 60 
#-
 61 # Application class
 62 
#-
 63 
 64 @decorator
 65 def catch_config_error(method, app, *args, **kwargs):
 66 """Method decorator for catching invalid config 
(Trait/ArgumentErrors) during init.
 67 
 68 On a TraitError (generally caused by bad config), this will print 
the trait's
 69 message, and exit the app.
 70 
 71 For use on init methods, to prevent invoking excepthook on invalid 
input.
 72 """
 73 try:
---> 74 return method(app, *args, **kwargs)
method = 
app = 
args = (None,)
kwargs = {}
 75 except (TraitError, ArgumentError) as e:
 76 app.print_help()
 77 app.log.fatal("Bad config encountered during initialization:")
 78 app.log.fatal(str(e))
 79 app.log.debug("Config at the time: %s", app.config)
 80 app.exit(1)
 81 
 82 
 83 class ApplicationError(Exception):
 84 pass
 85 
 86 
 87 class LevelFormatter(logging.Formatter):
 88 """Formatter with additional `highlevel` record
 89 

/home/dr_zola/SageMath/local/lib/python2.7/site-packages/IPython/terminal/ipapp.pyc
 in initialize(self=, argv=None)
294 
295 return super(TerminalIPythonApp, self).parse_command_line(argv)
296 
297 @catch_config_error
298 def initialize(self, argv=None):
299 """Do actions after construct, but before starting the app."""
300 super(TerminalIPythonApp, self).initialize(argv)
301 if self.subapp is not None:
302 # don't bother initializing further, starting subapp
303 return
304 # print self.extra_args
305 if self.extra_args and not self.something_to_run:
306 self.file_to_run = self.extra_args[0]
307 self.init_path()
308 # create the shell
--> 309 self.init_shell()
self.init_shell = >
310 # and draw the banner
311 self.init_banner()
312 # Now a variety of things that happen after the banner is 
printed.
313 self.init_gui_pylab()
314 self.init_extensions()
315 self.init_code()
316 
317 def init_shell(self):
318 """initialize the InteractiveShell instance"""
319 # Create an InteractiveShell instance.
320 # shell.display_banner should always be False for the terminal
321 # based app, because we call shell.show_banner() by hand below

[sage-support] Re: Impossible to launch sage after downloading the .tar.bz

2017-03-04 Thread Dominique Laurain
I see only .tar.bz2 files here 
: http://www-ftp.lip6.fr/pub/math/sagemath/linux/32bit/index.html
and here : http://www-ftp.lip6.fr/pub/math/sagemath/linux/64bit/index.html

When running sage, you start two "sage" scripts in your Linux shell 
environment.
I advice you to begin with debugging these scripts because it looks like 
you have a "user directory install" (in your home directory ~daniel).

Start with a :

sage -h
sage -root

You surely missed setting one shell environment variable, because names of 
files or directories in your displayed error messages are weird.

For debug purposes, add some lines like : echo "DANIEL 1 : sage root = " 
$SAGE_ROOT in the sage scripts

Difficult for me to help more : I have build my sage local  from sources, 
maybe a different way than you.
You should have written previous terminal commands (after copying the 
package archive) in your post...that helps people who want to help you.

Dominique

-- 
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 https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Impossible to launch sage after downloading the .tar.bz

2017-03-04 Thread Daniel


Hello, 
I've just bougth a new laptop and after installing Xubuntu 16.10, I tried 
to install SageMath. So I downloaded the file, like explained on the 
website but when I try to launch it, I have this error message : 





Somebody has a clue ?

-- 
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 https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Issue with ticket number #29146

2017-03-04 Thread Ashutosh Ahelleya
Heyy,

I want a confirmation for selecting an of the options above i.e. I add a
new parameter signifying a complex number or I just change the
documentation.


Regards,
Ashutosh

-- 
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 https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Issue with ticket number #29146

2017-03-04 Thread Michael Orlitzky
On 03/03/2017 08:32 AM, Ashutosh Ahelleya wrote:
> 
> No. I guess the back end does return a complex parameter in cases where the 
> answer is a complex solution.  
> This might be an appropriate example:
> { { sage: 
> x = var('x')
> eq = x^2 -3*x + 4
> solve(eq,x)
> [x == -1/2*I*sqrt(7) + 3/2, x == 1/2*I*sqrt(7) + 3/2]
> } } 
> Here, in this example, the parameter used is 'I'.

I was actually curious if Sage ever returns an arbitrary "r1" constant
to refer to a complex number. There is the special case where we turn
"all" into "r1", but there may not be any others.

If it's possible for "r1" to represent a complex number in any other
situation, then the correct course of action is clear: update the
documentation to say that "r1" is complex.

On the other hand, if "r1" is always real except in one specific case
(the "all" result), then maybe it makes more sense to leave the
documentation as-is, and return something else (c1?) for the "all" result.

-- 
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 https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.