Reputation
3,270
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
6 20
Impact
~67k people reached

Jun
26
comment How to make a list of Plots of derivatives of a function?
Why the x -> y? Because if you use {x, 0, 1} as 2nd argument to Plot, then for each such x, Mathematica will evaluate all those derivatives with respect to the currently-constant value of x, which makes no sense mathematically and would give a *Mathematica` error.
Jun
26
comment Plot some ordered pairs on the Cartesian plane?
David Park's Presentations add-on allows direct plotting of complex numbers, without any need for the user to pull them apart into their real and imaginary parts, by ReIm or otherwise. And to draw a coordinate grid: With[{pts = RandomComplex[1 + I, 5]}, Draw2D[{ Opacity[0.95], DrawCartesianMap[z, {z, 0, 1 + I}, Mesh -> 10, MeshStyle -> Black, PlotStyle -> White], Blue, ComplexArrow[{0, #}] & /@ pts, PointSize -> Large, Red, ComplexPoint /@ pts}, Axes -> True] (I'd make this an answer if the question were not on hold.)
Jun
26
comment Plot some ordered pairs on the Cartesian plane?
There's no need for the artifice of RandomReal[{-1, 1}] + I RandomReal[{-1, 1}]. Since Mathematica 6, one may use RandomComplex, e.g.: RandomComplex[1 + I, {20}].
Jun
23
comment Why does DSolve return two solutions for my ODE?
Looks to me like the first solution does satisfy the initial condition y[0]==1 but satisfies the differential equation only when x <= -2 || x >= 1. [that's the condition that allows simplifying \Sqrt[(-2 + x + x^2)^2) to -2 + x + x^2.]
Jun
21
revised How convert list of numbers to list of points on x-axis?
recast to explain the aim as well as emphasize the level of users who would use the solution
Jun
21
comment How convert list of numbers to list of points on x-axis?
you're right, I'm wrong. My test with Show had a typo!
Jun
21
comment How convert list of numbers to list of points on x-axis?
Even though this approach is hardly the tersest, it is very easy to understand, even by a beginner: no pure functions, no use of Map, no other functional construct such as Thread. (Having grown up programming in APL, this way should have occurred to me.)
Jun
21
comment How convert list of numbers to list of points on x-axis?
I'm afraid using NumberLinePlot doesn't solve the problem, as the points on the x-axis I want to form are going to go into the Epilog of a Plot expression. And it's not obvious how to combine a NumberLinePlot with a Plot by means of Show, even though both have head Graphics.
Jun
20
comment How convert list of numbers to list of points on x-axis?
Actually, efficiency was not among my concerns; brevity and, especially, transparency to those relatively new to Mathematica were. (Perhaps I should have said that.)
Jun
20
comment How convert list of numbers to list of points on x-axis?
Sorry I couldn't accept two answers: your use of {#,0}&/@ came first. But @Bob Hanlon's answer included also the so-nice use of Thread.
Jun
20
accepted How convert list of numbers to list of points on x-axis?
Jun
20
comment How convert list of numbers to list of points on x-axis?
I especially like Thread[{vec,0}] because it's not only short, but also avoids use of pure functions.
Jun
20
revised How convert list of numbers to list of points on x-axis?
edited body
Jun
20
asked How convert list of numbers to list of points on x-axis?
Jun
14
accepted How fix backup command?
Jun
14
comment How fix backup command?
@ilian: Works perfectly! Make it an answer?
Jun
14
asked How fix backup command?
Jun
12
comment Open-source IntelliJ IDEA plugin to support Mathematica development
@halirutan: in /Library/Java/JavaVirtualMachines I find only jdk1.8.0_31.jdk. From java.com/en/download/faq/java_mac.xml#restore : "Can I restore Apple Java 6 after uninstalling Oracle Java 7? Yes, see the instructions on the Apple website Restore Apple Java 6. If you have JDK 7 or later versions installed on your system and you want to restore Apple Java 6, then those JDK versions need to be uninstalled first. See the instructions to Uninstall JDK."
Jun
10
comment Open-source IntelliJ IDEA plugin to support Mathematica development
@halirutan: When I start IntelliJ IDEA, I get a pop-up saying, "To open 'IntelliJ IDA' you need to install the legacy Java SE 6 runtime." But as I understand things, if you have Java 7 or 8 JRE installed, then you cannot also have Java 6 JRE: Yosemite (and possibly Mavericks, too) allows only a single JRE to be installed.
Jun
9
comment Open-source IntelliJ IDEA plugin to support Mathematica development
There's a problem with using IntelliJIDEA on Mac OS X: it requires Java 6. However, the current version of Java is 8. My understanding is that it's impossible for two different version of Java to coexist under current versions of OS X.