Programing on the Mac

Joined
Oct 18, 2005
Messages
230
Reaction score
0
Points
16
Your Mac's Specs
MacPro 3.1
I've done a bit of programing on a windows machine before using VisualBasic so I know a little bit about the basics writing a short program.

At the moment I'm in uni studying structural engineering. I'm getting countless exercises and questions on bean theory, that all follow the same algorithm to work out the answer. As this is getting a bit tedious I though that I could write a program to do all the long sums for me whilst I just enter the numbers in as they appear on the page.

I know nothing about programming on the mac so can some one tell me the name of a good program to get writing on?

I'm looking for something that I can input dimensions and beam properties into and then it will work out the long winded analysis for me. I'm also looking for a good program that I can construct a visual 3D representation with 2D graphs of the beam profile. That might be a bit further down the line but that's where I want to take it.

Essentially, I'm trying to write a VERY SIMPLIFIED version of autodesk inventor for my mac. And, although I'm not trying to take down autodesk I'm just trying to make my life that little bit easier.

Any input at all welcome!


Andrew :D
 
Joined
Mar 28, 2008
Messages
15
Reaction score
1
Points
3
Location
Gahanna Ohio
Your Mac's Specs
MBP 2.4Ghz, BlackBook 2.0 Ghz, iBook G4, 8Gb iPhone, AppleTV, 80 Gb Video iPod 3 Nanos and 1 Shuffle
two choices

IMO I see two choices, one is Real Basic and the other is C++ or Progresive C using XCode.

Since you've used VB in the past Real Basic may be the easiest route for you. I believe the 2D and 3D graphics would be easier with Real Basic then with the various C languages.

I could be wrong here, but with the C languages you'll have to use OpenGL for as your 3D library to draw your images. This process can have a small bit of a learning curve to it. Real Basic on the other hand should make this process simpler.
 
Joined
Mar 27, 2008
Messages
18
Reaction score
2
Points
3
I don't know anything about beam theory (or do you mean bean theory :) ) but if the algorithm simply gives a numerical output, that's probably something easy to do in C or C++. You can write a simple C program using gcc and any text editor. For the visual output...well that's a bit trickier, obviously. OpenGL is certainly one way...but what kind of output does it entail? Is there something you can point us to that shows the kind of graphics you'll need?
 
Joined
Jun 22, 2007
Messages
347
Reaction score
2
Points
18
Your Mac's Specs
iMac (27 inch, Late 2012), Processor: Core i5, Memory: 16GB 1333 Mhz DDR3 running MacOS Catalina
Being completely new to programming, one thing I'm learning now is the fact that how effective and efficient your algorithm is... thats how efficient your program will be (no matter what language you use).

According to what I read recently on the net, a good start is to write up an algorithm. Work at it until you know its proper and efficient and gives you the desired result. Then re-write the algorithm's instruction in the language of choice.

Well that's my opinion. :D
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
I can't imagine the algorithms would give you problems in any language. The code would look pretty much the same. The small differences of the particular language should be easy to adjust to.

Count this as an opportunity to learn Cocoa and Objective-C. Building an interface to input the numbers should be easy via Interface Builder. Connecting that to the execution code in Objective-C shoud be easy too. From there you could jump to the graphics output.

I wonder if some of the open source plotting programs would be useful given your output dataset. Perhaps they are more geared towords simple graphing.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top