914 reputation
217
bio website
location Greece
age
visits member for 1 year, 4 months
seen 3 hours ago

Apr
10
accepted How to solve correctly inside a DO loop and then plot
Apr
10
comment How to solve correctly inside a DO loop and then plot
See above a much simpler solution by @Simon Woods!
Apr
10
comment How to solve correctly inside a DO loop and then plot
@SimonWoods I'm really speechless, one line solution! Please make a quick answer so as to accept it.
Apr
10
comment How to solve correctly inside a DO loop and then plot
@Kuba There are two issues with the plot: (i) it is not continuous; there is a gap near 0 and (ii) at the right part near +1 the last point joins incorrectly back near -1.
Apr
10
comment How to solve correctly inside a DO loop and then plot
@Kuba Perhaps data = Flatten[ Do[Vx = V[x, 0, z0]; sol = Solve[Vx == E0 && -1.01 < x < 1.01, x]; If[Length@sol > 0, Sow[Join[sol[[;; 2, 1, 2]], {z0}]]];, {z0, 0, .6, .001}] // Reap // Last, 1]; is better and combined with Off[Solve::ratnz]; at the top there are no warnings any more. But again the plot is not correct.
Apr
10
comment How to solve correctly inside a DO loop and then plot
@Kuba So is there no solution to the problem at all?
Apr
10
comment How to solve correctly inside a DO loop and then plot
@Z-Y.L I think that the warnings when solving the equations in the Do loop are mainly because there are no solutions for every value of z0;
Apr
10
comment How to solve correctly inside a DO loop and then plot
@Kuba I think that the flood of error messages is because for some values of z0 there are no solutions. This is exactly what I want to know; how to get reject these cases from the list. The Solve syntax is corrected. BTW, thanks for the shorter version of neg!
Apr
10
revised How to solve correctly inside a DO loop and then plot
deleted 74 characters in body
Apr
10
asked How to solve correctly inside a DO loop and then plot
Feb
17
accepted How to change the format of FrameTicks
Feb
16
comment How to change the format of FrameTicks
@Nasser I used this option but it had no effect.
Feb
16
asked How to change the format of FrameTicks
Jan
20
awarded  Critic
Jan
11
revised Simplifying using assumptions
added 4 characters in body
Jan
11
answered Simplifying using assumptions
Dec
26
awarded  Quorum
Dec
25
awarded  Nice Answer
Dec
24
revised How to simplify expressions
edited body
Dec
24
revised How to simplify expressions
added 247 characters in body