Tag Info

New answers tagged

0

In your first line of your code the variable a is assigned the string ["/Users/pedrofonsecazuccolo...." and then trying to use the Part function that is a[[1,Range[1,19],2]] which indeed is a wrong part specification for the string. Probably you intended dados[[1,Range[1,19],2]], which would take a Part from the data retrieved by Import[a] and assigned to ...


1

First of all I think that one function definition is ok: f[c1_,c2_,p_,n_,i_]:= Sum[ Binomial[n,j] p^j (1-p)^(n-j), {j,0,c1}] + Sum[ Binomial[n,j] p^j (1-p)^(n-j-n i), {j,c1+1,c2}] Then use the k_v's answer in the form t=Flatten[ Table[ If[(a=f[c1, c2, 0.01, n, 5])≥0.95 && (b=f[c1, c2, 0.05, n, 5])≤0.05, ...


1

You can generate a full Table of values as you stated myTable = Table[ {c1, c2, n, f1[c1, c2, 0.01, n, 5], f2[c1, c2, 0.05, n, 5]}, {c1, 0, 4, 1}, {c2, c1 + 1, 6, 1}, {n, 175, 185} ]; Then make a selection of the values you wish using Select, Partition and Flatten mySelection = Select[ Partition[Flatten[myTable], 5], #[[4]] >= 0.95 ...


0

firs of all there's no need to use nested Table, and you may use values selection directly inside the table evaluation t=Table[ If[f1[c1, c2, 0.01, n, 5]≥0.95 && f2[c1, c2, 0.05, n, 5]≤0.05, {f1[c1, c2, 0.01, n, 5], f2[c1, c2, 0.05, n, 5]}], {c1, 0, 4, 1}, {c2, c1 + 1, 6, 1}, {n, 175, 185}]/.Null->Sequence[]/.{}-> Sequence[] this way let ...


2

I can reproduce this problem on OS X with Mathematica 10.0.2, but with XLS and XLSX files only. Thus it's different from this bug which existed in version 10.0.0 and affected all files, and was fixed later. I believe that this is a bug and you should report this to Wolfram Support so it can be fixed. Mathematica.SE is not a website run by Wolfram ...



Top 50 recent answers are included