Displaying 2 results from an estimated 2 matches for "c2_i".
Did you mean:
2_i
2007 Aug 23
1
Expedite scalar f(x) evaluation over vectors
...(y, function(y) {
integrate(function(x) {a*(c1+x)+b*(c2+x)}, boundsx[1], boundsx[2])$value
})
}, boundsy[1],boundsy[2])
}
I would like to rapidly evaluate this function over vectors c1 and c2 of
equal length where the double integral is calculated for each (matching)
element c1_i & c2_i. At present I get length mismatch errors. Furthermore,
mapply() takes too long. Can I expedite this evaluation or do I need to
reformulate my approach?
Thanks in advance for your help,
Scott C. Stark
University of Arizona
[[alternative HTML version deleted]]
2007 Aug 23
1
Clarification: Expedite scalar f(x) evaluation over vectors
...ndsx[1], boundsx[2])$value
})
}, boundsy[1],boundsy[2])
}
<<I do not have a closed form for the real function>>
I would like to rapidly evaluate this function over vectors c1 and c2 of
equal length where the double integral is calculated for each (matching)
element c1_i & c2_i. At present I get length mismatch errors. Furthermore,
mapply() takes too long. Can I expedite this evaluation or do I need to
reformulate my approach?
Thanks in advance for your help,
Scott C. Stark
University of Arizona
[[alternative HTML version deleted]]