Programming Definition and 1000 Threads

  1. P

    T codes and other CNC Programming questions

    I have learned M Codes and G Codes in CNC Programming. I was looking at a programming and found some statements unfamiliar to me This is how the program goes N1 T0000; G00 X0.0 Z0.0; T0101; ... ... N2 T0000; G00 X0.0 Z0.0; M30; 1) all the programs I have studied till date number each and...
  2. J

    Which Language is Best for Beginners: Fortran or C?

    This is a topic I have absolutely no clue about. I don't know where to start, or what to even do. If someone could please tell me the best language/software to start with it would be greatly appreciated. I've been told Fortran is a really good place to start, but is Fortran a language or...
  3. J

    MIPS programming file I/O problem

    Homework Statement Write a PC SPIM program that can (1) Prompt for a complete file name. [Note: Probably should be in the same directory as the program.] (2) Echo the input. (3) Test to see if a file by that name already exists. If it does, query the user to see if destruction of the old...
  4. M

    Comp Sci Where to save .dat file for C++ programming

    Homework Statement I'm starting my C++ project which requires me to call a file stream and output the data to four other output streams. Before I start, I want to know if I need to have a .dat file premade and saved somewhere so I can call it or do I just make that file in my code by using...
  5. Whovian

    C/C++ C++ functional programming problem

    As a basic exercise in C++ functional programming, I wrote the following code: #include <iostream> #include <string> using namespace std; template <class T> void Wib (T& a,T& b) { T temp = a; a = b; b = temp; }; int main() { string A = "World!"; string B = "Hello, "; Wib <string>...
  6. R

    Studying ChE with Felder book (self-study, online, programming)

    I'm taking a second-year chemical engineering course online with BYU (link: http://is.byu.edu/site/courses/description.cfm?title=CHEN-273-200#). It uses the Felder textbook (link: https://www.amazon.com/dp/047168757X/?tag=pfamazon01-20), which I reckon is popular for most ChE programs. What...
  7. T

    Fortran FORTRAN Programming Error: Incomparable ranks 0 at and 1 in assignment.

    Hi guys having a problem with my code, FORTRAN keeps stating: lambda(k+1)=(newsum/oldsum) Error: Incomparable ranks 0 at and 1 in assignment. The code is below: subroutine powerit(a,b,c,E,n) implicit none real, intent(in) :: E real, intent(inout) ...
  8. M

    Java Good books/articles I can learn java from? Or another programming language?

    From free PDF's to books I have to buy. Anything that will be helpful
  9. G

    MATLAB programming assignment (for loop)

    Homework Statement (see attached file) Homework Equations (see attached file) The Attempt at a Solution isbn=input('Enter 9 Letter ISBN number: ','s'); for i=1:1:length(isbn) (%indent)num=str2num(cat); (%indent)check=num*i %somewhere in...
  10. D

    Where Can I Find a Good Fractals Programming Tutorial?

    I want good tutorial on programming fractals using computer languages like C++,Java,Python,C#,Perl,Delphi,OpenGL. I want to program various fractals using any above languages for that I need some tutorial. Please suggest me some of the resources which are useful.
  11. Dembadon

    Comp Sci Programming: Fraction Arithmetic in C++

    This program has been assigned in my intro to programming course, which assumes no previous knowledge of programming. Up to this point we've only been required to write functions that accomplish specific tasks within a program. This is the first time we've been asked to design and write a full...
  12. N

    C/C++ C++, java, or python programming

    i know this topic has been discussed, but i would really want a direct reply and soon Do i have to learn java or c++ in order for me to learn how to be a hacker?... good intentions off course, for security and privacy needs... please let me know. Thank you.
  13. E

    Physics & Programming: Dual Majoring in MEV

    I read in the "So you want to be a physicist" thread that it is essential these days for a physicist to be able to program. Since I plan to dual-major in mechanical engineering, will this give me the programming skills I need? I notice that the very first course in the curriculum is Engineering...
  14. C

    Programming Tutorials | thenewboston.org

    I came across some good programming tutorials, and I hope they are able to help someone. http://thenewboston.org/tutorials.php
  15. S

    Why Do CPUs Handle Signed and Unsigned Arithmetic Differently?

    I'm completely lost, I have an exam in C programming in a month & a half based off of this: http://www.maths.tcd.ie/~odunlain/1261/prog.pdf Basically I need some recommendations of books &/or online resources that follow the flow of those notes extremely closely but offer additional insight...
  16. C

    Linear programming with absolute value objective function

    Homework Statement Minimize |2x1-3x2| subject to x1+x2≤5 -x1+x2≥-1 x1≥0, x2≥0 (a) Solve the problem graphically. (b) Formulate a linear program that could be used to solve the problem. Use software to solve your LP and show how to reconstruct a solution to the original problem...
  17. C

    Solve TI 89 Programming r(θ): Learn How to Input Expression & Variable

    Hi, I'm trying to fine-tune a function I wrote for the TI 89 Titanium. Basically, for part of my function, I need it to plug in θ (an inputted variable/argument) into an expression r(θ) - also a an inputted variable/argument - and yield a numerical result. In other words, the input format is...
  18. C

    Object Oriented Programming vs PDE?

    I'm confused on what classes to take next semester. I've talked to my adviser but they're kinda useless as they don't want me to take upper level courses (past calc 3 and ODE). However, I want a dual math and physics degree which would be helpful in gradschool. Right now I have the following...
  19. T

    A-level Mathematics programming

    Hi.. Until very recently, I have what can be called a marginal interest in computers and even more so in math (mostly because any math I can do is limited to AS Level and despite being able to deal with abstractions in other disciplines, I seem not to have caught on the math front..I was also...
  20. M

    Learning Systems Programming in C

    Hey everyone, I am currently in a C and UNIX Systems Programming course, and my professor is not the best to say the least. Does anybody have recommendations on how to learn Systems Programming on your own? Such as, any interesting projects I could do in my spare time with online...
  21. C

    Executing more than one command in C programming at the same time, newbie in C.

    Hello all, I'm doing a project related to counting up the amount of production. I'm using Arduino board and C language. I am counting the amount of production in 3 line in the factory. So far I have design the program only for 1 line, how to make the 2nd and 3rd lines so at the end I can sum...
  22. Z

    What is the percentage distribution of dots rolled on a fair six-sided die?

    Homework Statement Write a program to simulate rolling a six-sided “fair” die with one dot on one side, two dots on another side, three dots on another side, and so on. Allow the user to enter the number of rolls. Use first while loops to trap the illegal input number first (negative, zero, or...
  23. J

    MIPS programming successive addition

    Homework Statement I need to create a program that will prompt for two integers, echo those integers, and then multiply them without using the multiplication operation and report the result. Homework Equations The following is what I have so far. The prompts and echoes work, however I do...
  24. M

    Strong Duality Theorem in Linear Programming

    If a linear Program (P) has a feasible solution x_{o}, ( x_{o} not necessarily optimal),does it follow that there exists a feasible solution to the dual problem (D) as well? If yes, why? I know that the Strong Duality Theorem guarantees an optimal finite solution to the dual problem if the...
  25. K

    Free/GNU/Open Source programming language for Windows GUI

    Hello everyone, Can anyone suggest me a suitable GUI programming language for windows (like Microsoft VB or anything else). The software should be free of cost. It also should not restrict me to publish my product as freeware/open source. (Additionally the software should be able to handle...
  26. C

    Is the Set C Nonempty and Unbounded for Given Linear Programming Constraints?

    Homework Statement Let C be the set of all points (x,y) in the plane satisfying x≥0, y≥0, -x-2y≤-8. a. Show that C is nonempty and unbounded. b. Prove that the LP problem: Max M=2x+3y subject to the constraint that (x,y) lie in C has no feasible, optimal solution. c. Show that the LP...
  27. J

    Comp Sci C++ programming, Newtons Method.

    Having a lot of trouble the my C++ course, loops especially. This is the assignment giving me trouble The function you are to implement finds a root of the given function eff(x) using Newton's method. The given version of eff(x) implements f(x) = x2e-x-2 (where e is the base of the natual...
  28. T

    How to indicate programming experience on a CV

    (I'm putting this here as opposed to the Career forum because it's for REU applications) I have some experience in C++, MATLAB and R, but I'm not sure how to indicate on the CV how much experience. I'm not an expert in any of them, but I don't know that "beginner" is right either. Years...
  29. C

    Linear programming graph T/F questions

    Homework Statement The shaded area on graph represents the feasible region of a linear programmin problem whose objective function is to be maximized. Label each of the following statements as True or False, and then justify your answer based on the graphical method. In each case, give an...
  30. R

    Physics Programming in theoretical physics

    Ok , Programming and me haven't been the best of friends . It kinds of irritate me , although I can follow the logic of what's going on , I find it very hard to come up with the code , I make a error and find it impossible to correct the error .What I have been learning so far is MAthematica ...
  31. A

    How to Effectively Learn Programming Through Real-World Applications

    Hi, I have some basic background in Python and was planning to self-learn more programming. I was wondering if people here that have self-learnt programming in C/C++ and now using it for "real world" purposes (such as image analysis for BEC or data processing in particle physics) can share...
  32. R

    MATLAB Programming B-spline curve in Matlab from scratch

    I decided to write my problem and attach as a separate document so that everything was included and would leave room here to discuss my problem. From what I understand from the equations is that for each value of u I calculate the value of the basis function for each basis function i. Then...
  33. A

    Engineering Programming useful in Electrical Engineering?

    Is it worth it to take an extra 10 courses (and thus a whole extra year) of computer science courses in university on top of my 4 year electrical engineering degree? If I want to work in the electrical engineering field, how useful will the knowledge gained from these courses be? I'm planning to...
  34. A

    Help with Intro Programming: Debugging Errors

    hey I am doing a intro programming class and I am running into some problems. would really appreciate some help to see where I went wrong. Been trying to figure it out for hours now. Someone please help me out These are my errors c: In function ‘main’: c:33:9: error: expected identifier or...
  35. Y

    How to Solve This Dynamic Programming Problem with Two Subsequences?

    I'm having problem to solve this problem in DP: Given 2 subsequences: X = {x1, x2,..., xm} and Y = {y1, y2, ... , yn} so `n <= m` and also `y1 <= y2 <= ... <= yn`. The goal is to find a sub-sequence of `X` (xi1, xi2, ... , xin) such that: sum(k is 1 to n) | xik - yk | is...
  36. R

    Programming Langauages for Research in Quantum Mechanics

    Hey, I'm a second year physics undergrad and I'm interested in doing research in quantum Physics after I graduate. I'm just wondering what programming language I should be focusing on to enable me to carry out such research I've done introductory courses for Mathematica, Matlab and C++ and so...
  37. S

    Programming languages that have statistical distributions

    hello - Do you know which programming languages have probability distributions available to use such as the binomial distribution (as an example). I guess I would like to limit my questions if it's necessary to languages that are either free or cheap - no specialty math packages for...
  38. rcgldr

    Simple programming training puzzle (repeat)

    This is a repost of an old thread, maybe some new members can give it a shot. This puzzle was included at the start of a casual IBM Fortran programming class for high school students back in 1969. (Yes, I'm that old). I don't know the origin of this puzzle. An extremely simple and old...
  39. K

    Programming in Assembly Language

    Hi, I've never programmed before but I recently downloaded the book "Programming from the Ground Up" and I plan to start studying it in 2012. I've heard that many programmers who learn to program in Assembly don't see a need to use anything else besides this programming language. Is this...
  40. L

    Linear Programming - Branch and Bound Method

    Homework Statement I'm trying to learn the Branch and Bound method. For that, I need to master the Dual Simplex Method (DSA). I have tried and tried and tried to google examples but can't find any. Does anyone know where I can find any? How do you know the LPP has become infeasible with...
  41. C

    Textbook for physics programming

    Can anyone recommend me a textbook that teaches you how to write simple physics models? I would like to take everything I learned this year in physics 1 and create a program for it since I'm also a comp sci major. This is the best one I found so far but I'm not sure if it's exactly what I...
  42. L

    Linear Programming - Separation of points

    This semester while taking Linear Programming (Linear Optimization Models), we talked about using a linear program to separate two sets of points A and B. The general program is: Max d s.t. yA ≥ axA+b+d yB ≤ axB+b-d It can be expanded into finding a polynomial that passes between the...
  43. M

    Lab view programming to drive motor

    Hi I will get straight on to the problem. I want my RC servo motor to run when there is no light from 0-180 degrees and when there is light the motor should stop. I have made a program which reads the voltage from sensor and a program to generate PWM signal witha a timer sepraretly as a...
  44. L

    Linear Programming - Separation of Points

    Homework Statement I made this problem up as an example for a bigger problem I have to do. P = {(-2,4),(1,3)} and Q = {(-1,1),(0,0)}. I need to use linear programming to find the best line to go between them. Homework Equations Max d subject to: y_{i}≥ax_{i}+b+d (for all points above...
  45. H

    MATLAB Matlab programming using shooting method, Euler and Runge Ketta methods

    I need help to solve this coursework: MATLAB PROGRAMMING COURSEWORK OBJECTIVES:  Learn to solve engineering problems using MATLAB  Write Euler and Runge-Kutta initial-value ODE solvers  Write a Shooting Method boundary-value ODE solver  Investigate the properties of the solvers ...
  46. F

    Sum of Multiples of 3 and 5 Below 1000 - Simple C++ Programming Question

    I'm teaching myself C++ and am stuck on this VERY simple problem. I'm not sure what's wrong with my code. The problem is from https://projecteuler.net/ if anyone is wondering. Homework Statement If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9...
  47. S

    Fortran How are numbers stored in F2 and F3 matrix in Fortran programming?

    Hi all, I'm stuck on a fortran line code where I have a doubt on its interpretation. The line is the following: ----------------------------------------- dimension F2(4,6,2), F3(5,7,2) ... open(77,...) read(77, '(4I3)') F2,F3 ----------------------------------------- the...
  48. Z

    Java A Guide to Programming in Java by Lawerenceville Press exercises?

    A Guide to Programming in Java by Lawerenceville Press exercises?? KK Nevermind.
  49. M

    Physics Programming or EE with physics degree?

    A while back I made a post here: https://www.physicsforums.com/showthread.php?t=536451 detailing how I got kicked out of grad school for physics and whether or not I can ever hope to get back in. Long story short, I decided to get a job for now and possibly go get a Master's in EE later...
  50. pairofstrings

    How programming languages are created?

    If we write better compiler does it mean that programming language is getting better?
Back
Top