Off topic: I now know that taking the logarithm of the reciprocal of a non-zero
real number changes the sign of the real part of the logarithm of the original
number:
csrp NB. change sign of real part
(1r2 * -@(+ +) + (- +))"0
csrp 1j2 _3j_4
_1j2 3j_4
]rr =: 1 % 4 2 1 0.5 0.25 NB. non-
Not sure. I suppose instead of
-@^.@(+/&.:*:)
we could write:
^.@%@(+/&.:*:)
or even:
^.@(+/&.:(*: :. (^&_0.5) ) )
But I'm not sure what this buys us.
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On
On Mon, Dec 16, 2013 at 4:42 PM, Dan Bron wrote:
> I know there are subtle and beautiful connections between the trigonometric
> and exponential functions, and the e hidden in r. is one expression of
> that. But I'm still not seeing the fundamental physical interpretation.
> In other words, I was
Dan, I haven't been following this thread, but know that minus the logarithm of
a positive number is the logarithm of the reciprocal. Is that relevant?
^. 1r4 1r2 1 2 4
_1.38629 _0.693147 0 0.693147 1.38629
--Kip
Sent from my iPad
> On Dec 16, 2013, at 3:42 PM, Dan Bron wrote:
>
> Raul
Raul wrote:
> Is there a better way of doing this?
>{: +. r.inv j./1 1
Marshall responded:
> You can also use (+/&.:*:) in place of |@j./ ,
> leaving you with -@^.@(+/&.:*:)"1
Raul wrote:
> Experimenting: the - is necessary and the ^. is not necessary.
> (I do not get a hexagon without
Gian Medri wrote:
> I am using kfiles in j602.
> I need to lock single component.
> Is it possible and how?
Funny, I thought I wrote a reply to this question yesterday, but now I can
find no trace of it. Some neurons must be on the fritz after Santacon.
Anywho.
I don't think you can lock spe
For complex vectors I would expect from Arie
en =: |@j.&|/"1
]zz =: 2 2 $ 1j1 1j1 1j2 4j10
1j1 1j1
1j2 4j10
en zz NB. norms of vectors 1j1 1j1 and 1j2 4j10
2 11
# ;: 5!:5 <'en' NB. Number of words in linear representation
8
(Euclidian norm of complex vector is square root of sum of
You might be able to adapt this mutex code:
www.jsoftware.com/jwiki/DevonMcCormick/mutex.ijs and mutex_TCs.ijs for the
test cases.
On Mon, Dec 16, 2013 at 10:05 AM, Eric Iverson wrote:
> I don't think kfiles provides a lock facility. With a bit of digging
> you might be able to figure out how to
NB. I would omit ("1) and arrange multiple vectors in columns.
en =: [: %: [: +/(* +)
]zz =: |: 2 2 $ 1j1 1j1 1j2 4j10 NB. two column vectors
1j1 1j2
1j1 4j10
en 1 2 4 10 NB. norm of 4D real vector
11
en 1j2 4j10 NB. 2D complex vector
11
en zz NB. norms of column vectors
2 11
I don't think kfiles provides a lock facility. With a bit of digging
you might be able to figure out how to use 1!:31 to lock the relevant
area of the file. It might be easier to have a companion file to the
kfile where each byte represented the corresponding index in the kfile
and use 1!:31 on tha
Very nice indeed!
Esa
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Aai
Sent: 16. joulukuuta 2013 14:42
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Length of a vector
|@j./"1 yy
5 13
17
Here is a Euclidian norm verb that is correct for vectors with complex
components. How would you write it?
en =: [: %: [: +/"1 (* +)
]zz =: 2 2 $ 1j1 1j1 1j2 4j10
1j1 1j1
1j2 4j10
en zz NB. norms of vectors 1j1 1j1 and 1j2 4j10
2 11
The Euclidian norm of a vector with complex
|@j./"1 yy
5 13
17 25
On 16-12-13 04:38, km wrote:
This is an easy one, but let's see what you come up with.
The Euclidian norm or length of a vector is the square root of the sum of the
squares of its components. Write verb en below. It should be able to find
the length of a vector
13 matches
Mail list logo