Re: [Jbeta] data transfer fixes
I don't have any Apple products, but it looks to me like the HTML changes are wrong. There should by semicolons after the escaped sequences, so undoing them should include them. d=. d rplc 'lt;';'' d=. d rplc 'amp;';'' Paul On Jun 19, 2012 11:48 AM, Eric Iverson eric.b.iver...@gmail.com wrote: Thanks for the clear report. Progress, but not quite there yet. There are 2 problems. The first is that what should be created is ~addons/math/misc. This might be due to a typo mistake on your part. The create should be: jt 'c';'~temp/t.jt';'~addons/math';'misc' The extract should be: jt 'x';'t.jt';'~addons/math' Note: ~addions/math path and the misc folder. The 2nd problem is mine and I need to think about it a bit. The original text has to be mangled to fit in the html textarea. This mangling needs to be undone. What is required is something like; d=. fread't.jt' d=. d rplc 'br';LF d=. d rplc 'lt';'' d=. d rplc 'amp';'' d fwrite 'j.jt' and now do the extract. I need to think about where to do this. You could try the above suggestions manually. I'll have a fixed version out this evening. On Tue, Jun 19, 2012 at 1:52 PM, Brian Schott schott.br...@gmail.com wrote: Eric, there's good news and there's bad news. The good news is that I was able to select all on the iPad with the math directory. The bad news is the directory (below) looks funky and I don't know where to get the files. The final directory is named misc, not math or math/misc. Also notice that each script has a HTML break after it. In the instructions for the attach verb you forgot the prefix temp. jd '~addons/misc'NB. folder files amoeba.ijsbr bigpi.ijsbr brent.ijsbr build.ijsbr contfrac.ijsbr det.ijsbr fermat.ijsbr gamesolver.ijsbr gcd.ijsbr integer.ijsbr integrat.ijsbr ... --- (B=) On Jun 19, 2012, at 12:26 PM, Eric Iverson eric.b.iver...@gmail.com wrote: Brian, I hope you are willing to try moving over math/misc again :) -- -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] Floating %. goes very bad very fast (mea culpa)
I don't expect floating answers to be exact. However, most of my use of computers begins with inexact numbers, so getting the floating routines as good as possible seems like a worthy effort to me. Unfortunately, I stopped my reseach when J's answers went very wrong at H 9. Nars also supports extended percision and rational numbers, so I've continued the work. While it does well though 12, it goes horribly wrong at 13. http://home.comcast.net/~paul.l.jackson/PLJsAPL/JandNars.txt Paul On Mon, Jun 18, 2012 at 7:01 PM, Roger Hui rogerhui.can...@gmail.com wrote: Don't you become even a bit suspicious when the answers don't agree? Consider the number on the lower right hand corner: PLJsAPL: 2815820646.25489 Dyalog: 2815825985 NARS2000: 2815820182 J Rational: 2815827300 (true answer). If you are proud of implementation X, I can bring it down to earth real quick by asking it to invert H 2*n, or by working in rational numbers. H=: %@:@(+/~)@i. (+/ .* %.) H 20x -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] Floating %. goes very bad very fast
I only raised it because it is so bad compared to everyone else I've looked at, including mine. An original copy of my result and my implementation code are available on request. Please note, I cannot speak for others but I didn't take a Hilbert matrix into account in writing mine. Paul PLJsAPL=: 0 : 0 80.531610822 ¯3239.99665986097 41579.9420943319 ¯249479.578965133 810808.433035166 ¯1513508.76245454 1621616.2451529 ¯926637.713155974 218789.430959011 ¯3239.99667368818 172799.763174579 ¯2494795.89900529 15966690.2071222 ¯54053889.1945398 103783451.186115 ¯113513134.744105 65894238.5094722 ¯15752839.8286812 41579.9425036479 ¯2494795.91108115 38419849.2522369 ¯256132286.350815 891889090.567644 ¯1748102418.55488 1942335832.29382¯1141617699.88458275674708.595751 ¯249479.582883114 15966690.3618727 ¯256132287.510015 1756335480.92061 ¯6243223179.83275 12430950040.9097 ¯13984817837.5535 8302674292.97357 ¯2021614600.3302 810808.450415449 ¯54053889.9691135 891889098.317587 ¯6243223204.79328 22544971251.5605 ¯45450659629.1162 51648474522.865 ¯30918813482.07817581054973.44456 ¯1513508.80311881 103783453.123491 ¯1748102440.39083 12430950134.7588 ¯45450659786.369292554068055.4922 ¯106051533619.168 63930593442.9569 ¯15768594736.8895 1621616.2969454 ¯113513137.318931942335863.28028 ¯13984817987.4734 51648474857.9506 ¯106051533934.55 122367153478.811 ¯74205153752.1709 18396694252.0436 ¯926637.747107004 65894240.2479428 ¯1141617721.69509 8302674405.58929 ¯30918813765.344663930593798.5238 ¯74205153941.7251 45229808347.2382 ¯11263282403.1867 218789.439925196 ¯15752840.2978892 275674714.654419 ¯2021614632.92992 7581055060.93416 ¯15768594860.4611 18396694339.8914¯11263282427.95742815820646.25489 ) DialogAPL=: 0 : 0 81.0837 ¯3240.000441 41580.00571 ¯2.494800309E5 8.108100843E5 ¯1.513512123E6 1.621620094E6 ¯9.266400324E5 2.187900028E5 ¯3240.000352 172800.0149 ¯2494800.1321.596672026E7 ¯5.405399896E7 1.037836745E8 ¯1.135133904E8 6.589439254E7 ¯1.575287780E7 41580.0033 ¯2494800.068 38419919.12¯2.561327823E8 8.918909013E8 ¯1.748106101E9 1.942340048E9 ¯1.141620239E9 2.756753345E8 ¯249480.0094 15966719.51 ¯256132777.2 1.756338956E9 ¯6.243235864E9 1.243097584E10 ¯1.398484736E10 8.302692071E9 ¯2.021618982E9 810809.9941 ¯54053995.43 891890869.5 ¯6.243235770E9 2.254501711E10 ¯4.545075286E10 5.164858121E10 ¯3.091887772E10 7.581070803E9 ¯1513511.922 103783666.1 ¯17481060171.243097550E10 ¯4.545075234E10 9.255425620E10 ¯1.060517489E11 6.393072306E10 ¯1.576862667E10 1621619.848 ¯113513379.8 1942339933 ¯1.398484685E10 5.164858015E10 ¯1.060517480E11 1.223673983E11 ¯7.420530117E10 1.839673057E10 ¯926639.8769 65894385.62 ¯11416201618.302691705E9 ¯3.091887687E10 6.393072205E10 ¯7.420530065E10 4.522989667E10 ¯1.126330416E10 218789.963 ¯15752875.99 275675313.6 ¯2.021618879E9 7.581070548E9 ¯1.576862633E10 1.839673034E10 ¯1.126330410E10 2.815825985E9 ) NARS2000=: 0 : 0 80.4931 ¯3239.996392 41579.93755 ¯249479.5464 810808.3137¯1513508.519 1621615.966 ¯926637.5448 218789.3894 ¯3239.996409 172799.7447 ¯2494795.584 15966687.95 ¯54053880.89 103783434.2 ¯113513115.2 65894226.72 ¯15752836.92 41579.93807 ¯2494795.6 38419843.93 ¯256132248.1 891888949.5¯1748102130 1942335500 ¯1141617499275674658.9 ¯249479.5515 15966688.15 ¯256132249.6 1756335208 ¯62432221721.243094797E10 ¯1.398481546E10 8302672851 ¯2021614244 810808.3362 ¯54053881.9891888959.6 ¯624304 2.254496755E10 ¯4.545065203E10 5.164846577E10 ¯3.091880818E10 7581053660 ¯1513508.571 103783436.7 ¯1748102158 1.243094809E10 ¯4.545065223E10 9.255405253E10 ¯1.060515157E11 6.393058258E10 ¯1.576859205E10 1621616.032 ¯113513118.6 1942335540 ¯1.398481565E10 5.164846618E10 ¯1.060515161E11 1.223671329E11 ¯7.420514126E10 1.839669115E10 ¯926637.5882 65894228.96 ¯11416175278302672992 ¯3.091880853E10 6.393058301E10 ¯7.420514148E10 4.522980079E10 ¯1.126328053E10 218789.4008 ¯15752837.52 275674666.5 ¯2021614284 7581053766
Re: [Jbeta] ? : 0 Hangs on Android
Yes, 1!:1[1 hangs the same way. I should say that both worked on Android until version 1.0.5, although I hadn't used keyboard input until you suggested it. Paul On Sat, Jun 16, 2012 at 10:03 AM, Eric Iverson eric.b.iver...@gmail.com wrote: My guess is that Michael doesn't have 'suspended input' working yet. There are 3 cases in J where the J interpreter calls for input from 'up the stack'. The simplest is 1!:1[1 and you can test to see if that hangs the same way. The other cases are : keyboard input and debug suspension. This is one of the harder problems to solve for each platform. I'm sure this will be sorted out eventually. It does work in the new J for iOS. On Fri, Jun 15, 2012 at 9:52 PM, Paul Jackson plj...@gmail.com wrote: I have j-console-1.0.5.apk It hangs if I enter : 0 in the session, regardless of the number before the colon. The same sequence works with files I load, which is why it has been days before I noticed. Paul -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- Paul -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] (no subject)
What must load to have access to jfromurl? I'm working on Android. Is it only on iPhone? Paul On May 30, 2012 5:34 PM, Eric Iverson eric.b.iver...@gmail.com wrote: following is real code copied from my j ipad session! it puts vocab page in hview. you would want to put last line with writehview in a util defined in your start.ijs. i think writehview will be so common that i will give it a shorter util name. d=.jfromurl'www.jsoftware.com/docs/help701/dictionary/vocabul.htm' d fwrite'~user/vocabul.htm' 12603 writehview_jzplot_ fread'~user/vocabul.htm' -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] (no subject)
Thanks. I have a copy of the help files which are included in J 6. With your pointer, I am able to point to the local copy with browse_j_ 'file:///localPath/...' and thus have a command line Help. Paul On May 31, 2012 11:49 AM, bill lam bbill@gmail.com wrote: android use the verb anddf to download file, eg url anddf pathtofile browsing html or help files are already provided in base library. eg browse_j_ url htmlhelp_j_ 'dictionary/vocabul.htm' So far android J behaves more or less like a traditoinal jconsole or ide. Чтв, 31 Май 2012, Paul Jackson писал(а): What must load to have access to jfromurl? I'm working on Android. Is it only on iPhone? Paul On May 30, 2012 5:34 PM, Eric Iverson eric.b.iver...@gmail.com wrote: following is real code copied from my j ipad session! it puts vocab page in hview. you would want to put last line with writehview in a util defined in your start.ijs. i think writehview will be so common that i will give it a shorter util name. d=.jfromurl'www.jsoftware.com/docs/help701/dictionary/vocabul.htm' d fwrite'~user/vocabul.htm' 12603 writehview_jzplot_ fread'~user/vocabul.htm' -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] 7 u: is no op on Android J
NB. On Android .../dist/j-console-1.0.4.apk NB. 7 u:returns the right argument, regardless of its values. NB. Executing the following explains what should happen NB. On Windows, when the display font includes APL characters NB. the following UTF-8 sequence displays alpha times omega ]utf8=: 226 141 186 32 195 151 32 226 141 181{ a. (3!:0 , #) u7=: 7 u: utf8NB. Should be 131072 5 (3!:0 , #) u4=: 4 u: 9082 32 215 32 9077 NB. u4 is what u7 should be u7-: u4 NB. Both work on Windows utf8-: 8 u: u4 NB. Works on Android Paul -- For information about J forums see http://www.jsoftware.com/forums.htm
[Jbeta] Menu File Open looses changes on Android J
On Android .../dist/j-console-1.0.4.apk From a J session, open any file with MenuFileOpen Make changes to the file. The header line changes to file name * indicating the editor knows the text has been changed. Then navigate with the Android Back icon. The header line changes to J Console. You are back in the session and the changes are lost. Please ask if I mean to abondon the changes, much like J does when I leave the session the same way. Paul -- For information about J forums see http://www.jsoftware.com/forums.htm
[Jbeta] Self reference crashes Android J
foo=: 3 : 0 #y ) foo0 'this';'and';'that' 4 3 4 foo=:foo 0 foo foo0 foo 'this';'and';'that'NB. Instant death, no error message. Paul -- For information about J forums see http://www.jsoftware.com/forums.htm
[Jbeta] Android J
Is another version for Android planned? I've been using 9!:14'' j701/2011-02-23/15:25 I've gotten around to using the Unicode support. Several things work here as in other platforms. However, 7 u: Is essentially a no op. If I give it one byte chars, I get back one byte chars, even when proper UTF-8 chars are in the right argument. I am also interested in fixes for 1 2 3 o. and menu file open/save issues I reported earlier. Paul -- For information about J forums see http://www.jsoftware.com/forums.htm