Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

solving an equation with matlab

Status
Not open for further replies.

sasaberali

Junior Member level 1
Junior Member level 1
Joined
Oct 5, 2007
Messages
16
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,369
define equation in matlab

hi
how can i solve the following equation using matlab?please write the commands.
logα-Γ'(α)/Γ(α)=β
in which α is the variable,β is a known(you can use a number instead) parameter and Γ represents gamma function and Γ' is it's derivative.
Thanks
 

do you know how to find the derivative of the gamma function?

if you do - define a function like this

y = @(a) log10(a) - (gamma derivative (a) ???? / gamma(a)) - beta

notice that beta is on the other side of the equation. hence you are solving for zero now.

plot the function using:
fplot(y, [minrange, maxrange])
this will enable you to solve it graphically.

analytically, use:
fzero(y, possible zero)

this steps assume you know how to find the derivative of the gamma function.
 

    sasaberali

    Points: 2
    Helpful Answer Positive Rating
thank you for your help;
i can find the derivative of gamma function,but its better to ask my question in a different way:
I want to use solve command to find the answer,is there any way to use diff command directly,for example sth like this:
solve('log(alpha)-diff('gamma(alpha)')=0.5')
(i know this command is not correct,i need sth like this which is acceptable for matlab!!!)
 

can any matlab guru hep me compare deployment algorithms for networks?
 

Do you want a symbolic solution or numerical solution?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top