How to solve an equation which includes iteration/summation and with a mixed unknown variable ?
古いコメントを表示

I am trying to solve equation for "Epe(OC)" the first term in exponential, i am using "solve()" to write it in unknown variable form, and it gives me result, however I am not getting a way to solve it in the form of summation, anyone if guide how to solve this type of equation will be great favor.
1 件のコメント
Rik
2023 年 1 月 24 日
I recovered the removed content from the Google cache (something which anyone can do). Editing away (part of) your question is very rude. Someone spent time reading your question, understanding your issue, figuring out the solution, and writing an answer. Now you repay that kindness by ensuring that the next person with a similar question can't benefit from this answer.
採用された回答
その他の回答 (1 件)
Sam Chak
2022 年 4 月 12 日
Hi @IQRA KIRAN
Not exactly sure how your summation look like. Maybe the LaTeX code is incorrectly entered.
Anyhow, if you looking to find the root of the equation, for example

then you can try something like this:
n = 1 : 4;
f = @(x) sum(n./(1 + exp(x - n))) - 5; % function to be solved
x0 = 2; % initial guess
x = fzero(f, x0) % root-finding solver
x =
3.0399
Hope this is helpful to give you some insights on how to enter the summation that you desire.
カテゴリ
ヘルプ センター および File Exchange で Number games についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


