Click here to Skip to main content
15,887,821 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
suppose we have four functions.....f1(a,b,c),f2(a,b,p), f3(a,b,d), f4(a,b,d)......i integrated f1 and f2 with respect to c and p respectively and left with f1(a,b) and f2(a,b),,,now i have another function f5(a,b,d) = f3(a,b,d)*integration of function f1 with respect to c (i.e. f1(a,b)) + integration of function f2 with respect to p (i.e. f2(a,b)) and i integrated it with respect to 'a'............and another function f6(a,b,d)= f4(a,b,d)+ integration of f1 with respect to c(i.e. f1(a,b)) and also i integrated it with respect to 'a'.....now the problem is f6 is giving correct answer but f5 doesnot.....and even i have to use integration of f5 and f6 in another function and integrate with respect to 'b'.....but f5 is not getting solved....anyone knows how to integrate a function containing integration of another function having same variables?...please help....
Posted
Updated 10-Jan-15 2:32am
v2

1 solution

If I understand the issue right, you have

f1Int(a, b) = integral of f1(a, b, c) with respect to c
f2Int(a, b) = integral of f2(a, b, p) with respect to p

f12Int(a, b) = f1Int(a, b) + f2Int(a, b)
Now, f5(a, b, d) = f3(a, b, d) * f12Int(a, b)

Similarly, f6(a, b, d) = f4(a, b, d) + f1Int(a, b)
The operation for f5 is a *, whereas that for f6 is a +

Is this understanding correct? If so, it should work.

If I remember right, in Fortran 77, two functions with different prototypes should not preferably have the same name - preferable not to have f1(a, b, c) and f1(a, b); you need to name the second one differently, say, f1Int(a, b). Just want to ensure that your program does not have such identical function names.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900