« first day (1735 days earlier)      last day (1492 days later) » 

6:19 AM
A HUNDRED TIMES YES!
 
 
3 hours later…
8:56 AM
@flawr I haven't yet found the right combination of what to put in place of atan2(re(...), im(..)), however, having tried to solve the 3-equation 2-unknown system, I reached the desired conclusion that the solution is the same regardless of how many equations are used (in other words, the LS solution also happens to be exact). So now it's a matter of figuring out how to get the numbers I get in dPhi_dH:
je1 = [0.000262403258150469;7969.9492956835;-1991.17530762973];
je2 = [9.40143300600827e-05+3.08497891788974e-05i;986.742856094563-3012.78448842457i;-246.21564237334+753.350371052036i];
dPhi_dH = [real(je2), imag(je2)] \ je1; % [3.30405766375215;-1.56323627459804]
Also, in case it matters, at the coordinate of differentiation (x0,y0,z0): H(x0,y0,z0) = -0.0773402292254098 - 0.228954577349212i
 
@Dev-iL one quick quiestion: in matlab and many other languages you have atan(y/x) = atan2(y, x) != atan2(x, y), so if this is matlab code I guess you'd have to use atan2(im(...), re(...)), is that what you are doing?
 
of course: atan() is 2-quadrant, whereas atan2() is 4-quadrant
 
I mean the order of x and y in atan2, in many languages the y comes as first argument
 
same in MATLAB
 
but you wrote atan2(re(...), im(..))
 
9:11 AM
@flawr merely quoted you
 
but you're sure you did not make any mistake in that regard? (mine was just a "mathy" notation, which is the opposite of the programming notation)
I just want to avoid the confusion here:)
 
There are no mistakes so far because I have no code that converts je2 to je1
 
ok so what is je1 and je2?
 
I haven't applied atan2 in any way to je2
 
je2 is the (complex) gradient of H(x,y,z)?
 
9:16 AM
je1 is the result of finding the gradient of phi numerically -> thus real
je2 is what you just said
 
ok, thanks, let me crank up matlab:)
 
yey ^_^
 
where is the ignition key
 
thanks a lot for your time, despite this appearing to be a silly problem
wait wait wait
I think I've got it
dP = [-imag(H), real(H)] ./abs(H)^2 * ...
  [real(dHdK), real(dHdB), real(dHdL); imag(dHdK), imag(dHdB), imag(dHdL)];
@flawr Great success! ^
 
yay:)
dP gradient of phi?
 
9:30 AM
yeah
 
so I got this:
gradAtan2 = @(x, y) [-y, x]./(x.^2+y.^2);
je1 = [0.000262403258150469;7969.9492956835;-1991.17530762973];
je2 = [9.40143300600827e-05+3.08497891788974e-05i;986.742856094563-3012.78448842457i;-246.21564237334+753.350371052036i];
dPhi_dH = [real(je2), imag(je2)] \ je1; % [3.30405766375215;-1.56323627459804]
H = -0.0773402292254098 - 0.228954577349212i;
dH_dxyz = [real(je2.'); imag(je2.')];
disp(gradAtan2(real(H), imag(H)) * dH_dxyz) % gradient via complex stuff
disp(je1.') % numerical gradient
it seems likew we came to the same conclusion
(I just transposed things so they fit into my brain.)
 
wouldn't it be easier to define gradAtan2 = @(x) [-imag(x), real(x)]./abs(x).^2; ?
 
yes taht would work just as well, I preferred having real arguments in my gradatan2
 
H should be [-0.117004283217977 - 0.247300363220905i] (no idea how I got the number I previously wrote)
 
ah with that it works perfectly:)
:)
 
9:38 AM
for sure
Let me upvote a random post by you as token of appreciation
 
haha not necessary, was fun to work out:)
 
Seems fitting that you'll get a badge
 
yay some precious metal:)
oooh the good old anonymous functions:)
 
10:26 AM
Was it the iif one?
 
10:58 AM
@AndrasDeak yes, iff appears there
 
11:52 AM
@AndrasDeak have I shown you the where where I made use of this? :)
 
12:09 PM
@flawr nice, you haven't!
 
 
1 hour later…
1:36 PM
@LuisMendo Dark backgrounds are for people that don’t know how to tune down the brightness of their monitor.
 
 
3 hours later…
4:47 PM
@CrisLuengo If you say so... :-)
Or maybe
in talk.tryitonline.net on The Stack Exchange Network Chat, Jul 6 '18 at 1:55, by Dennis
Light-colored themes are an evil plot to blind the human race.
 
I tell you, all those people don't know how to turn down the brightness of their monitor.
As long as the monitor has the same brightness as a piece of paper, then your eyes will not get tired of reading from the monitor.
My monitor is actually a little dim right now, because the sun just came out.
 
I wonder whether there are also regular computer monitors with the screens used in e-book-readers
oh there is a 13" one and in only costs slightly more than $1k
 
I think they're not fast enough for normal computer work?
Oh, really, it exists? That's cool!
 
I think they are indeed not fast enough for stuff like videos
 
My problem with all the dark themes, and the idiot websites that use gray text on a gray background, is that the contrast is too low to read comfortably. I've got my monitor set up properly, and have to pay the price of all the idiots who don't know how to do so... :)
@flawr But as a second monitor that is totally awesome.
 
4:58 PM
sure:)
I have also seen mini e-ink screens on sites like aliexpress for your own diy projects that even have 2 colors (like black /red or black/yellow)
hm the speed isn't even as bad as I thought: youtube.com/watch?v=6pw-oCItgx8
 

« first day (1735 days earlier)      last day (1492 days later) »