2,656 reputation
512
bio website
location
age
visits member for 2 years, 9 months
seen 26 mins ago

Oct
2
comment Replacing columns of a matrix with zeros
I suppose you could do something like this then MapAt[#*0&,list1,{All,1;;3}]
Oct
1
comment Outputting numbers symbolically
Inactivate[Table[2^n, {n, 1, 5}], Power] (I am not obsessed with Inactive I promise)
Oct
1
comment Strange style conversion indicator appeared when type “a Pre”
From reference.wolfram.com/language/ref/CodeAssistOptions.html it looks like the option is "AutoConvertEnable".
Oct
1
comment How to regress negative log?
Something like NonlinearModelFit[data, -p2 Log[p1 x],{p1,p2},x] where p1 and p2 are parameters?
Oct
1
comment Spherical parametric plot
If you have version 9+ you can use: ParametricPlot3D[Evaluate[CoordinateTransform[ "Spherical" -> "Cartesian",{2 Cos[t]+Sin[t],t,Sin[10 t]}]],{t,0,Pi/2}]
Oct
1
comment How to simplify symbolic matrix multiplication using the associativity of scalar multiplication?
This may be too specific: Thread[(2 A).(3 B), Times] /. Dot[a_?NumericQ, b_?NumericQ] :> a b
Sep
12
comment Join decimal part
just beat me to it, yours is the same as mine (essentially):toDecimal[a_, b_] := N[a + (-1)^Sign[a] b 10^(-IntegerLength[b])]; list /. {a_, b_, c_, d_} :> {toDecimal[a, b], toDecimal[c, d]} (* {0.1, -2.259} *)
Sep
12
answered Convert Locator (x,y) values to Lat/Lon as per GetCoordinates on Map
Aug
27
comment Numerical value of physical constants Mathematica 10
you can also use QuantityMagnitude to get the value out.
Aug
27
comment Numerical value of physical constants Mathematica 10
or In[647]:= UnitConvert[Quantity[1, "PlanckConstant"], "eV*s"] Out[647]= Quantity[4.135668*10^-15, "Electronvolts" "Seconds"]
Aug
27
comment Numerical value of physical constants Mathematica 10
what would you like the result to be, i.e. which units should it be with respect to?
Aug
25
reviewed Approve suggested edit on Plotting an function defined by an integral
Aug
22
comment Window ▶ Show Handwriting Input
Have you turned on the "Tablet PC Components" in Windows 7?
Aug
22
revised Dependency injection - use a specific implementation of one function within another
add a bit more clarification
Aug
22
answered Dependency injection - use a specific implementation of one function within another
Aug
15
answered How to display operations on list elements
Aug
7
reviewed Approve suggested edit on Combining images with CUDA
Aug
5
comment Integral too slow and with conditionals
use assumptions Integrate[x/(x^2 + y^2)^(3/2), {y, -a, a}, Assumptions -> (x | y) \[Element] Reals && x > 0 && a > 0]. This is likely a duplicate, but I can't find which one.
Aug
5
comment No menu in Mathematica 10 under Ubuntu 14.04
What is the result of the following? AbsoluteOptions[EvaluationNotebook[], WindowElements]
Aug
5
answered How to programattically create a hyperlink to a local html file?