Well I have a table of data (table1_np) and I want to use it to define a function, but the problem is, that I don't know if the definiton is correct, because what I need to do sum the elements of other table whit that function and after that minimize the result.
Hi, I'm learning python and I'm just trying to minimize a function of many variables, but I have some problems with my code.
import numpy as np
import scipy.optimize as op
from scipy.optimize import minimize
table1_np = np.genfromtxt('Data/tabla1.txt', usecols=0)
#--------------------------...
Why if I create a Plot 3D using mathematica 8 the graph is not showed complete unless I hold the graph clicked with the mouse. I'm using Ubuntu 14.04 a weird fact is that in the same computer I have Windows 8 and If I run the program with Windows the graph is shown perfectly. May this question...
I have an asymetric probability distribution function (pdf), in this case we know that the concept of an error bar does not seem appropriate. Well I'm finding the shortest interval that enclosed the 68% of probability. My problem is that my pdf couldn't be integrated analytically and I'm using...
I have my graphic and i know which is the region of interest but when i put this interest region i have the next problem:
G[y_] :=NIntegrate[F[x, y], {x, 0.05, 25 }]
Out:
NIntegrate::inumr: The integrand 43.39404528 E^(1/2 (<<99>>+<<12>>)) has evaluated to non-numerical values for all sampling...
Well, my function is something like:
F[x_, y_] := Sum[(Tablev[[ i]] - Sqrt[(4 Pi*(43.040600502)*x* y^(3)/(Tablepc[[i ]]))*(-Tablepc[[i ]] / (Tablepc[[i ]] +y) + Log[((Tablepc[[ i ]] +y)/y)])])^2/(Tableerr[[
i]])^2, {i, 1, 61}]
And I need minimize a function:
G[y_] :=NIntegrate[F[x, y]...
I have a function of two variables F[x_,y_] and I Would like to integrate over one variable only and get a function G[x] for example and work with it.
I want something like:
G[x_]:=NIntegrate[F[x,y],{y,0,\infty}]
But it doesn't work.
What wrong with my calculation.the problem is from the attachment.
It keeps saying:
NMinimize::nnum: "The function value {10721.1} is not a number at {rs,x} = {1.91862,1.66351}. "
My code:
XDDO154[x_, rs_] :=
Sum[(DDO154vobs[[i]] -
Sqrt[(4 Pi*(43.040600502)*x*...