WolframAlpha

WolframAlpha is coming!

From the link:

“Some might say that Mathematica and A New Kind of Science are ambitious projects. But in recent years I’ve been hard at work on a still more ambitious project—called Wolfram|Alpha.

And I’m excited to say that in just two months it’s going to be going live:”

 

Sounds good, I hope it lives up to the hype 🙂

The “New Kind of Science” link above gives you free on-line access to the complete contents of the book.

A recent review:

Doug Lenat – I was positively impressed with Wolfram Alpha

“…

The bottom line is that there are a large range of queries it can’t parse, and a large range of parsable queries it can’t answer even when it can answer the constituents out of which they should be answerable, but it handles a huge range of numeric and scientific queries correctly even in its current state.  And Dr. Wolfram and his team are chipping away at the natural language blocks, at the holes in the curated data repository, and at increasing the type and depth of logical combination of constituents, one by one, in priority order, just as they should.  I went in to the demo concerned that this might be a competitor to Cyc, given its “hand-curate knowledge and engineer it, versus let anyone add anything” philosophy, but came out of last night’s  demo and discussion seeing Alpha as a complementary technology.  I would invest in this, literally and figuratively.  If it is not gobbled up by one of the existing industry superpowers, his company may well grow to become one of them in a small number of years, with most of us setting our default browser to be Wolfram Alpha.  “

Posted in Computing - general, Maths, Newton | Tagged , , , | Leave a comment

Another update to IP.xls

Following some suggestions from Mike Seymour I have modified my polyline intersection function, and added a new version. The changes are:

  • The data ranges for the new function, IP4(), are entered as four separate ranges, so the X and Y values do not need to be in adjacent columns.
  • For both IP() and IP4() the data may now be arranged in rows, rather than columns.  If the data ranges have more than 2 columns for IP(), or more than 1 column for IP4(), it is assumed that the data is arranged row-wise.

The new spreadsheet may be downloaded from: IP.zip

The spreadsheet also includes a number of geometric and interpolation functions.  As usual, full open-source code is included n the download.  See https://newtonexcelbach.wordpress.com/2008/08/10/intersections-interpolations-and-rotations/ for a full list.

Posted in Excel, Maths, UDFs, VBA | Tagged , , , , | 1 Comment

Connected

7:55 Thursday evening at Sydney’s Enmore Theatre for the Eric Bibb concert due to start 8:00, and the house is barely half full. An hour and a half later after the support act and an intermission the house is packed, the average age of the audience is maybe 20 years younger, and the show is about to start. Evidently the local kids know how things work at the Enmore Theatre.

It was worth waiting for; Eric Bibb supported by my favourite bass man Danny Thompson and Larry Crocket on drums.

Right now I’m listening to Andrew Ford of the ABC Music Show talk to Eric about connections, so this link seems appropriate:

After today (4th April) you can download the ABC interview for the next few weeks from The Music Show

Another YouTube clip, this time with Danny Thompson and Larry Crocket, plus the Melbourne Mass Gospel Choir

And Eric Bibb with Danny Thompson at the Maryport Blues Festival in 2007

Posted in Bach | Tagged , , , , | Leave a comment

Combining text files

Updated 3 April 2009. Following Jimmy Pena’s comments I have revised the code to read and write the files in one operation, rather than line by line. I have also added the option to add a numbered separator line between each file in the combined file.

What is the easiest way to combine a large number of text files into a single file?

Probably the easiest way is with some obscure command line syntax, that you can never remember or find help on when you need it; but for those of us who like to things in VBA the procedure below is reasonably fast and simple to use.  The procedure is:

  • Get the list of file names and location, and the name for the combined file.
  • Change directory to the location of the files to be combined.
  • Open the combined file.
  • For each file in the list:
  • Open the file.
  • Read the file and write it to the combined file.
  • If a separator line is specified wite the line and file number to the end of the combined file
  • Close the file and open the next.
  • After reading and writing all the files close the combined file.

To get the list of file names into a worksheet I use the file manager Total Commander, which lets you copy the names of selected files to the clipboard.

I have added the routine Comb_Text() to the spreadsheet Text-in2.xls, which can be downloaded here.

Here is the code:
Sub Comb_Text()
Dim i As Long
Dim FNameA As Variant
Dim NumFiles As Long, FName As String, Fnum1 As Long, FNum2 As Long
Dim Wholefile As String, FPath As String, AFname As String, SepLine As String
On Error GoTo no_selection
FNameA = Selection.Value
FPath = FNameA(1, 1)
If Mid(FPath, 2, 1) = ":" Then ChDrive Left(FPath, 1)
ChDir FPath
AFname = FNameA(2, 1)
Fnum1 = FreeFile
Open AFname For Output Access Write As #Fnum1
SepLine = FNameA(3, 1)
NumFiles = UBound(FNameA)
For i = 4 To NumFiles
FName = FNameA(i, 1)
FNum2 = FreeFile
Open FName For Input Access Read As #FNum2
Wholefile = Input$(LOF(FNum2) - 1, #FNum2)
Print #Fnum1, Wholefile
If SepLine .NE. "" Then Print #Fnum1, "End of File " & i - 3 & " " & SepLine
Close #FNum2
Next i
no_selection:
Close #FNum2
Close #Fnum1
End Sub

Note that if code is copied and pasted from the blog the “” characters get corrupted, and need to be corrected in the Visual Basic Editor, or just download the spreadsheet which has open source code.  Also replace “.NE.” with the usual VBA “not equal” symbol.

Here’s what it looks like:

Combine text files from an Excel list

Combine text files from an Excel list

Comb-Text input and output with separator line

Comb-Text input and output with separator line

Posted in Excel, VBA | 10 Comments

Frame Analysis with Excel – 6; Beam end releases and actions

Continuing from: Frame Analysis with Excel – 5; Large frames in Excel 2003

Download Frame3.zip – the download file includes complete open source code.

The frame analysis spreadsheet presented previously has now been revised to deal with beam end releases (either rotation or translation) and to produce a table of member end actions, as well as node deflections and reactions.

In addition, all of the calculations, including formation and solution of the required matrices, are now performed in the VBA routines, with the spreadsheet being used for data entry, and presentation of the results.

Shown below are results for two example frames, with results from the same frames analysed in Strand7.

Example 1: Simple frame with inclined member and 1 beam end release.

Simple Frame; Strand7 Results

Simple Frame; Strand7 Results

Simple frame; Spreadsheet results

Simple frame; Spreadsheet results

Example 2: Building frame with vertical and horizontal loads, and 2 beam end releases.

Building Frame, Strand7 Results

Building Frame, Strand7 Results

Building Frame; Spreadsheet results

Building Frame; Spreadsheet results

Posted in Excel, Finite Element Analysis, Frame Analysis, Newton, VBA | 4 Comments