Message Boards Message Boards

0
|
720 Views
|
4 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How to use the property of function to find the cumulative value of the function value?

Posted 1 month ago

The functions f[x] and g[x] have domains of R,and f[x]+g[4-x]=4,g[4]=8,g[x]-f[x-8]=8,and g[4+x]=g[4-x].Find the value of sum = Sum[f[2*m], {m, 1, 16}]

I tried this set of code and did not find the cumulative value

Clear["`*"]

g[x_ /; x <= 4] = g[x] = g[8 - x]
g[4] = 8

f[x_ /; x >= 4] = f[x] = 4 - g[4 - x]
f[x_ /; x < 4] = f[x] = g[x + 8] - 8
\!\(
\*UnderoverscriptBox[\(\[Sum]\), \(m = 1\), \(16\)]\(f[2  m]\)\)
POSTED BY: Lee Tao
4 Replies

Here is a way:

With[{m = 16},
 vls = Solve[Flatten@Table[{
      f[x] + g[4 - x] == 4,
      g[4] == 8,
      g[x] - f[x - 8] == 8,
      g[4 + x] == g[4 - x]},
     {x, -2 m, 2 m}]];
 Sum[f[2 k], {k, m}] /. vls[[1]]]
POSTED BY: Gianluca Gorni

It gives numerical values to the variable x and sets up the system of equations. Try the effect with a smaller range:

Flatten@Table[{f[x] + g[4 - x] == 4, g[4] == 8, g[x] - f[x - 8] == 8, 
   g[4 + x] == g[4 - x]}, {x, -1, 1}]
POSTED BY: Gianluca Gorni
Posted 27 days ago

If you're going to post the same question as you did on another forum, you really need to provide a link to that question as you can be wasting the time of folks trying to help you that don't know there might be informative comments or even answers.

https://mathematica.stackexchange.com/questions/302375/how-to-find-the-cumulative-value-through-the-abstract-function-analytic-expressi

POSTED BY: Updating Name
Posted 27 days ago

Thank you! What is the meaning and function of this code?

Flatten@Table[{f[x] + g[4 - x] == 4, g[4] == 8, g[x] - f[x - 8] == 8, 
   g[4 + x] == g[4 - x]}, {x, -32, 32}]
POSTED BY: Lee Tao
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract