Asked by Oscar
on 8 Sep 2013

Hi, As you can guess I'm a newbie, so please be patient with any nonsense i write ;)

I was solving a sum wich includad a factorial but I was unable to make it work using factorial(), so after searching for a while I found a workaround using gamma(). The sum is this one :

Well...that seems to be right.

I used MATLAB 6.1. BUT, whan trying to do exactly the same in MATLAB 2012a it doesn't work. It just ans= the same function I introduced.

What am I doing wrong? How can I make it work in 2012a?

Answer by Oscar
on 17 Sep 2013

Well... In MATLAB Answers no one has the answer, or at least those who have it won't share it.

Bye. It's been a ver helpful lack of time. (Excepting Walter, for a while).

Show 3 older comments

Walter Roberson
on 19 Sep 2013

Oscar, I do not work for Mathworks (if I did I would have all of the toolboxes). I would have to scrape my mail archives to find even one non-public Mathworks phone number or email address that I might have been given. I have suggested that Mathworks give me a list of email addresses that I could forward items such as this to, but no list was provided in response.

I also do not have a support contract at present, so I cannot even open cases on other people's behalf.

Jan Simon
on 19 Sep 2013

@Walter: You do not work for Mathworks. If you did you would have all of the toolboxes. Well. Do you have any evidence for these two claims? On one hand I assume you mean, that you are not *payed* by Mathworks. On the other hand I contemplate if you *are* a toolbox.

The public phone numbers are working very well and TMW reacts to emails to the obvious addresses. When you choose a wrong mail address, they do not hesitate to forward your mail to the concerned person of functional address.

Walter Roberson
on 19 Sep 2013

No, No! I work for Canada Eat The Cookie Foundation. Sometimes the work is beneficial to Mathworks, sometimes it is beneficial to other people.

I would tend to think that if I were a toolbox, that I would be receiving a share of the software maintenance fees ;-)

Opportunities for recent engineering grads.

## 9 Comments

## Walter Roberson (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/86642#comment_168191

6.1 used the Maple based Symbolic Toolbox. 2012a uses a MuPAD based toolbox.

I have Maple available to me, but I do not have MuPAD available to me.

## Oscar (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/86642#comment_168367

Thanks for your answer. Now I understand the problem.

The gamma(x+1) was a workaround because factorial(x) didn't work. I need a way to solve that sum in 2012a... so I have 3 more questions. Would it be OK to open a new question for this or should I just continue here?:

1. Is there a way to solve this sum using factorial(x) or any other function in 2012a?

2. If gamma(x+1) is the only way... how to make it work in 2012a? Installing Maple, maybe?

3. Is there any new version with a MuPAD that can solve the sum using factorial(),gamma()... ?

Thanks for you help and you kindness. (and please forgive me if I've been inappropriate before)

## Walter Roberson (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/86642#comment_168373

Sorry, I do not know what the difficulty is with MuPAD. gamma() is a documented function for it so I would have expected it would work.

## Oscar (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/86642#comment_168376

Yes, I also read it and gamma documentation was just the same in both versions so I expected it to work, but it doesn't :(

Would it be right to open a new question to re-formulate the problem and mark this one as answered now that I know where the problem resides.. or is it better if I just continue here?

## Walter Roberson (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/86642#comment_168401

Better to continue here.

## Oscar (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/86642#comment_168458

Ok, though I'm afraid no one is gonna answer this apart from you. Let's wait and see. Thank you for your help.

## Walter Roberson (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/86642#comment_168466

You won't get any more people answering by creating a new question ;-)

## Walter Roberson (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/86642#comment_168467

What is the output when you try with

Also, try

and

## Oscar (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/86642#comment_168649

Hi, I've tried what you suggested and these are the results I've got :

As you see, just the same answers as before. I don't know what else to do.