User Portlet User Portlet

Discussions
I have a matrix ,e.g., `d2={{3,2},{4,1},{5,6}}`, and I want to create a 3D array, e.g., `d3={{3,18,2},{4,32,1},{5,50,6}}` from the 2D matrix, note that the inserted middle element is 2 times the square of the first element . I can not figure out how...
Thank you Neil, I tried your suggestions above and worked well for up to the 3rd derivative. For the 4th derivative, the value of "ExactCondCovegeProbLAB22" is a negative large number which is not correct because it is a probability (it should be...
I have the following code which gives an error message "NIntegrate::inumr: The integrand (E^(-((\[Pi] r^2)/1000000)-1.58489*10^-10 r^2.09) \[Pi] r laplaceTBLAB[r] laplaceTBNAB[r] laplaceTBTB[r])/500000 has evaluated to non-numerical values for all...
I have tried this but it did not work xList = {4, 3, 7}; yList = {1, 6, 8, 10}; g[x_, y_] := Module[{x, y}, z = x + y; c = 2*y;] Outer[g, xList, yList] Please note that I tried to pack my code within Module
I have an analytical expression that I want to evaluate (please see the attached picture). Here is the code I tried `s[r_]=\[Alpha] * r ; xxSum[r_] := Sum[(-s[r])^kk/kk!*D[G[r], {r, kk}], {kk, 0, 4}]; xxLAB[r_] := xxSum[r]*f[r]; A =...
Thank you John, this was so helpful
Thank you Michael. 1- I tested gradient on a simple function in matlab but it did not give an accurate result 2- I want to construct a symbolic function using interpolation in mathematica, then I can evaluate the derivative using D[]. I have a...