Ask Your Question

burrobert's profile - activity

2020-11-30 03:19:51 +0200 received badge  Famous Question (source)
2019-08-30 13:15:52 +0200 received badge  Notable Question (source)
2017-11-20 16:42:25 +0200 received badge  Popular Question (source)
2017-11-16 22:31:21 +0200 received badge  Self-Learner (source)
2017-11-16 22:31:21 +0200 received badge  Teacher (source)
2017-11-16 15:59:18 +0200 answered a question Can Sage simplify factorials?

Given that I have been unable to find a way of doing this and no one else has explained how, I believe the answer to my question is that sage cannot provide x = y as a symbolic solution to the positive integer equation x! = y!.

2017-11-03 03:12:41 +0200 commented question Can Sage simplify factorials?

Hi Dan. Here is the type of system that I would like to solve:

x2 = x1!

x3 = x2!

x5 = x4!

x5 = x3*x4

The solution can be worked out by hand fairly easily to give a one parameter solution set using x1 as the parameter. However, I can’t work out how to force Sage to find solutions to these types of systems. Maybe it isn’t possible. I would be interested to know. The difficulty appears to be that when solving the system you need to be able to simplify the equation x4! = x3*x4. By hand you know that this implies

(x4 - 1)! = x3 = x1!!

So x4 = x1! + 1. But Sage seems to get stuck and throws up its hands and outputs the original equations. Any suggestions are welcome.

2017-11-02 16:47:49 +0200 commented question Can Sage simplify factorials?

Thanks Dan. My aim was to use Sage to solve a system of 6 or more equations in 6 or more variables. There are a few hundred of these that I wanted to iterate through using Sage to automate the process. The equations involve factorials. If Sage is unable to deduce that x = y when x! = y! then it can’t solve the system. I have tested Sage with such a system of equations. It merely returns the input because it can’t simplify the equation of two factorials. I also tried using the gamma function instead but the same problem occurs. On the other hand for some functions f Sage does recognise that x = y is a solution to f(x) = f(y) (such as polynomials) and as a result can solve a system of equations involving those f. The human operator can’t step in to help Sage ... (more)

2017-11-02 13:41:04 +0200 received badge  Editor (source)
2017-11-02 11:30:52 +0200 asked a question Can Sage simplify factorials?

I am starting out with Sage and am playing around with some simple equations involving factorials. I have not been able to find a way for Sage to simplify the equations. Does anyone know how, if possible, this is done? The set up is:

sage: var("x, y, z")

(x, y, z)

sage: eq1 = x^2 - y^2 == 0

sage: solve(eq1, x, y)

([x == -y, x == y], [1, 1])

sage: eq2 = factorial(x) - factorial(y) == 0

sage: solve(eq2, x, y)

([factorial(x) == factorial(y)], [1])

sage: eq2.simplify()

factorial(x) - factorial(y) == 0

sage: eq2.simplify_factorial()

factorial(x) - factorial(y) == 0

sage: eq2.simplify_full()

factorial(x) - factorial(y) == 0

As you can see sage can handle polynomials in eq1 but does not seem to recognise that x == y is a solution for eq2. I have tried adding some assume commands in to restrict to positive integers but this does not help. I have not been able to find anything in the documentation so far about this seemingly simple situation which must occur frequently so if anyone has any suggestions please let me know.