The first two bytes in a FAX.TIFF file are 2 ASCI characters "II"
(0x4949) ... (little-endian), and "MM" (0x4D4D) ... (big-endian) within
a 16- or 32-bit integer. The 42 is a two byte integer value so either
0x2A00 (little-endian) or 0x002A (big-endian).
On 2015/08/25 10:40 , Raul Miller wrot
If you begin by writing Raul's idea as an explicit definition, J selects a
different choice than his version. However, you can write and explicit
definition to produce his verb.
f=: 13 :'":".y'
g=: 13 :'":&".y'
f
[: ": ".
g
":&".
f 'z' [z=: 5.13e7
5130
g 'z' [z=: 5.
I guess you mean:
format=: ":&".
So simple. And here was me fooling around with 0j300&": and all sorts.
(I had a blind spot from using 5!:5 to handle a much wider range of datatypes.)
On Wed, Aug 26, 2015 at 3:55 AM, 'Pascal Jasmin' via Programming
wrote:
> ": seems to work with all your e
": seems to work with all your examples, and does 6 decimal places
automagically.
- Original Message -
From: Ian Clark
To: programm...@jsoftware.com
Cc:
Sent: Tuesday, August 25, 2015 10:41 PM
Subject: [Jprogramming] Format a floating number without rounding errors
Can anyone tell me
Can anyone tell me how to define a verb: format which returns a
numeral string for a noun z of datatype: 'floating' which is formally
identical to the original definition of z, viz
format 'z' [z=: 5.13
5.13
format 'z' [z=: 5.13e_7
5.13e_7
format 'z' [z=: 5e_7
5e_7
format 'z' [z=: 5e_4
0
Here's a fft method, it doesn't work with 1e9 bases, but with 1 base (same
as internal J) it does with a lot of fiddling:
there is a function in misc/numeric.ijs called clean, which I think is supposed
to help with converting from imaginary, but I don't really get it.
require '~addons/math
So did you try install labs/labs again as told by jhs?
--
For information about J forums see http://www.jsoftware.com/forums.htm
There are probably too many names, but there are slight differences:
JAL is the J Application Library, i.e. everything other than the base
system.
"pacman" is the script that provides the interface to the code on the
jsoftware website. In J, you can:
load 'pacman'
Package Manager is the name
This works fine for me, indeed plot 1 o. 0.01 * i.1 works fine. Why do
you think there is a 1000 data point limit?
What is your JVERSION?
On 25 August 2015 at 16:27, Don Guinn wrote:
> Tried to plot the expression (1 o. 0.01*i.995) and got an error symbol in
> the plot area. Found an error
A faster exponentiation function,
pow_xint_ =: [: ; [: m each/ |.@#:@] # ] (m_xint_ each ~@:])^:([: i.@#
#:every@:[ ) <@[
10 timespacex 'atox aa pow_xint_ 32'
0.00097408 553984
10 timespacex 'aar ^ 32'
0.0131244 100096
though the same speedup technique (binary expansion I think is the nam
Tried to plot the expression (1 o. 0.01*i.995) and got an error symbol in
the plot area. Found an error message in the jijx tab but it didn't display
until I pressed the enter key.
First, the limit of less than 1000 data points seems a little small, but it
seems to be more than just the number of
There is definitely faster multiplication code, based on FFT. Roger
worked on it for a while & as I understand it worked, but was never
released.
Henry Rich
On 8/25/2015 6:05 PM, 'Pascal Jasmin' via Programming wrote:
xtoa =: ([ (-@[ |.@:(0&".@:|.\)&.> <@|.@]) ":@:])"0 NB. dyad
xtoa9 =: >^:
Selected Studio/Labs in jhs jijx tab and got the message:
No labs installed.
Do pacman labs/labs install and try again.
The labs are installed. Verified that by looking at JAL list. Also they
show and run in jqt. But why does it say to use pacman to install the labs?
It's called "JAL" in jhs and
xtoa =: ([ (-@[ |.@:(0&".@:|.\)&.> <@|.@]) ":@:])"0 NB. dyad
xtoa9 =: >^:(1=#)@:(9&xtoa)
atox =: (0 ". 'x' ,~ [: ; ": each)"1
NB.list of extended ints to binary. Uses bit31 to indicate last number. Also
stores var 32/64bit ints
xatobN =: (([: ; (2 ic }:@] , (10) + {:@])each)) NB. cal
I threw this together:
>lineNumber=: ([: ;"1 (' ' ,~&.> [: ":&.> [: i. #) ,. <"1)@:([: > _1 {
> [: 5!:2 <)
For example:
>lineNumber 'consolidateBkpsTowardPast'
> 0 NB.* consolidateBkpsTowardPast: copy all contents of successive dirs
> into
> 1 NB. earliest starting with oldest->consolid
Is there any way to print a listing with line numbers?
[Never do I get to see a reply from my email to anyth...@jsoftware.com]
Eric Sargeant
--
For information about J forums see http://www.jsoftware.com/forums.htm
On Tue, Aug 25, 2015 at 12:20 PM, Joey K Tuttle wrote:
> profile, which SHALL use value "II". The next two bytes contain the value
> 42, which identifies the file as a TIFF file and is ordered according to the
> value in the first two bytes of the header. The last four bytes give the
...
> This s
Ah, my favorite rant topic -
wrong/right endian, eh? I suppose that means you prefer little endian
hardware ( see https://en.wikipedia.org/wiki/Endianness ) - but note
that it is a hardware architecture issue, not an OS issue, although Unix
is given credit in that article as having dealt wi
Note the difference in urls.
The url you originally posted needs "help/".
http://www.jsoftware.com/dictionary/contents.htm
The working url is:
http://www.jsoftware.com/help/dictionary/contents.htm
So the question about where you found the invalid url is a pertinent
one, if we want to reduce th
Hmm... you are correct. There are no 404 errors now. All I can say is a couple
of hours ago I could not reach most pages. I tried to get to the dictionary and
various other pages through jsoftware's main page's search box, and got 404s.
Now it all seems fine.
> From: b.g.h.go...@tudelft.nl
> T
just a mnemonic aid wrong endian = big endian (non-intel had to look it up).
Sorry for my mild opionated humour, but its easier to conceptualize than
remembering which is big or reverse.
- Original Message -
From: Dan Bron
To: J Programming
Cc:
Sent: Tuesday, August 25, 2015 11:07 A
Can you provide a conceptual mapping from “right endian” and “wrong endian” to
“big endian”, “little endian” and possibly “middle endian”?
-Dan
> On Aug 25, 2015, at 10:54 AM, 'Pascal Jasmin' via Programming
> wrote:
>
> Thank you everyone. I was asking due to my assumption that OSX used wro
IIRC mac powerpc used big endian. That said neither big or little endian
is "wrong".
--
For information about J forums see http://www.jsoftware.com/forums.htm
>From where are you trying to get there?
I am being sent to:
http://www.jsoftware.com/help/dictionary/contents.htm
where everything is fine.
From: programming-boun...@forums.jsoftware.com
[programming-boun...@forums.jsoftware.com] on behalf of Jon Hough
Thank you everyone. I was asking due to my assumption that OSX used wrong
endian format, but maybe OSX on intel uses right endian? Are there any current
J platforms that use wrong endian, and would create a different result for ic?
- Original Message -
From: J. Patrick Harrington
To:
Same result on OS 10.10.5
2&ic 1633837924 101
dcbae
JVERSION
Engine: j803/2014-10-19-11:11:11
Library: 8.04.11
Qt IDE: 1.4.5/5.4.2
Platform: Darwin 64
Installer: J804 install
InstallPath: /users/jph/j64-804
On Tue, 25 Aug 2015, 'Pascal Jasmin' via Programming wrote:
Does this result also
2&ic 1633837924 101
dcbae
JVERSION
Engine: j803/2014-10-19-11:11:11
Library: 8.04.11
Qt IDE: 1.4.5/5.4.2
Platform: Darwin 64
Installer: J804 install
InstallPath: /users/bobtherriault/j64-804
Cheers, bob
On Aug 25, 2015, at 5:56 AM, Brian Schott wrote:
> 2&ic 1633837924 101
> dcbae
I'm getting 404 errors on various Jsoftware pages.e.g.
http://www.jsoftware.com/dictionary/contents.htm
Just a heads up.
--
For information about J forums see http://www.jsoftware.com/foru
2&ic 1633837924 101
dcbae
JVERSION
Engine: j803/2014-10-19-11:11:11
Library: 8.04.06
Platform: Darwin 64
Installer: J804 install
InstallPath: /users/brian/j64-804 less old
--
(B=)
--
For information about J forums see http
Does this result also occur on mac? (or is it reversed?)
2&ic 1633837924 101
dcbae
--
For information about J forums see http://www.jsoftware.com/forums.htm
30 matches
Mail list logo