20,541 reputation
12770
bio website
location
age
visits member for 2 years, 8 months
seen 11 mins ago

Nov
10
comment Why is FileNameJoin not working?
did you type this in a notebook? what is aaa >> ? Did you check to see if you have a file called ` FileNameJoin[{Directory[],"input"}]` ? i.e. evaluate ` FileNameJoin[{Directory[],"input"}]` and see what it says, then go see if that file exist. btw, you code says "input" but the message you show says "input2"
Nov
10
comment Hurwitz-Lerch transcendent
The code you pasted in your question has many syntax errors. Can you post the correct Mathematica code?
Nov
10
comment Is there an open source implementation of Mathematica-the-language?
I am actually looking forward to seeing the Wolfram LRM (Language reference manual), which I assume will be published at some point in the future now that there is an official language called Wolfram.
Nov
10
comment Lists - pairing up
@ssch good question, I can't find it either, I just assumed it will work since this is a common level specification used by many other similar commands. So, I would have to say yes, but I am no expert in Mathematica specs, may be someone would know. At least it does give same results for this example. i.e {2} or {{2}}.
Nov
10
comment Is there an open source implementation of Mathematica-the-language?
hi, just to make sure I understand, are you saying that the Wolfram Language is/will be an "open-source" implementation of language Mathematica?
Nov
9
comment How to negate a boolean vector?
doing ??Not shows Not is not Listable. If a function foo is Listable, then one can write foo[{....}], and then foo will automatically by applied to each element in the list. For example, if you do ??Sin you'll see it says it is Listable. For non-listable functions, you can use Map, as in Map[Not,{True,False,True}] or Not[#] & /@ v etc... So, the first thing to always check is to do ?? in order to see if a function is Listable or not.
Nov
9
comment CDF embedding in HTML
It is really VERY simple to put CDF in HTML. No need for javascript, just use the line you showed, <embed src="AGN-standaloneClear.cdf" width="1380" height="6792"> All what you have to do is manually adjust the width value and the height value to your liking. That is what I do. I set it at width="700" height="700" and see if this showed the whole Manipulate or not. If not, I adjust the numbers. It only takes one or 2 tries to get the right numbers you want. This is how I have been adding CDF's to my pages for a very long time, never had a problem. Save CDF as standalone and all document.
Nov
6
comment Formatting results of a polynomial long division
there is a demo demonstrations.wolfram.com/PolynomialLongDivision
Nov
4
comment How can I increase the number of polygons / resolution for this plot?
Try changing Mesh and PlotPoints See help reference.wolfram.com/mathematica/ref/RegionPlot3D.html for options
Nov
3
comment Incorrect result from Integrate
@MichaelE2 good points about branch cuts. But I have thought the math/computer expert folks have decided on these things long time ago (PrincipalValue?) else one CAS will give one result, depending on its choice, and another will give different result for same problem because it decided to go another path (as it seems in this case). Any way, will have to learn more about these things myself one day. Good observations, thank you.
Nov
3
comment Incorrect result from Integrate
Sure. So both Maple and Mathematica are wrong. For some reason, now I feel a little better :)
Nov
3
comment Incorrect result from Integrate
Something is wrong. I tried this on Maple, with no assumptions. Mathematica and Maple gave the same numerical answer, except Mathematica made it imaginary (with minus sign), while Maple showed it as real (with positive sign). i.e. both gave 0.37 (in absolute terms). (again, no assumptions). So either Maple or Mathematica has a bug :) here is a screen shot: !Mathematica graphics
Nov
3
comment Plotting a graph
@user10366, just play with the PlotRange. Either use All, or give specific plot range. Will add small example. See help for syntax if not sure how. Notice, I used Frame->True, so plot range syntax is a little different.
Nov
3
comment Exporting combined data plots as a PDF file
What trouble are you having? Did you use the Export command? What did you type? What error did you get? For additional information reference.wolfram.com/mathematica/howto/ExportToPDF.html and reference.wolfram.com/mathematica/ref/format/PDF.html
Nov
3
comment Find maximum from NDSolve output
Well, you can't use NDSolve if you do not have a numerical value for d and T. So, once these are set, and you get your solution xx[t] from NDSolve, then you can use many of Mathematica maximum related functions, may be NMaxValue migth do it. "gives the maximum value of f with respect to x." reference.wolfram.com/mathematica/ref/NMaxValue.html
Nov
3
comment What is the most convenient way to read definitions of in-memory symbols when we don't have the source files? (Spelunking tools)
Great stuff Leonid! would you happen to know how to use this on a Manipulate source code? When I do CodeFormatterSpelunk[ Manipulate[Plot[Sin[a x], {x, 0, 1}], {{a, 1, "a"}, 1, 10, 1}]] I just get !Mathematica graphics (I am trying to use your program to format my manipulate code, but not able to)....
Nov
2
comment How do I define an argument pattern for a Head of NOT a given value?
can't you just do f[a_Integer] := 2 a; f[a_] := 2000 a ?
Oct
31
comment Problem in exporting a plot with background to pdf
Need "backimage.jpg" also that you are importing.
Oct
31
comment How to find a specific color in one picture?
@Kuba I think that is a good answer. image = Import["1wEvU.jpg"]; PixelValuePositions[image, Blue, 0.4] gave me {{1605, 810}, {1606, 810}, {1604, 809}, {1605, 809}, ...
Oct
31
comment Solve failing and not clear why
@Amzoti sorry, copied the wrong command. It is Solve, not NSolve. I tried NSolve earlier also to see what it does. But ended up using Solve with Reals.