Programming Definition and 1000 Threads

  1. R

    Having trouble reading input values in PIC assembly programming?

    Hi. I'm learning how to program in assembly to PICs and I'm stuck quite a while in a problem trying to figure out how to read an input value. I've been googling a lot and it seems that my code it's fine but as I'm beginning to learn I would like to know if any of you guys could tell me if its...
  2. C

    Fortran How Can a Single READ Statement Handle Multiple Data Types in Programming?

    Hi guys, straight to the point, how do you make your READ statement to be able to read both numbers and letters(words) or functions at the same time? okay, for example, i want the user to input a continuous function. what if the function is, let say, sin(x)? do i need to break the READ...
  3. D

    Programming C The Hangman Game - Array/Strings Help

    I'm well aware of all the Hangman codes that are out there given, but I feel that I will get a better understanding of this project if I did it myself with some help. My main problem is knowing how to compare one character of array from a string text file. The text file consist of a whole...
  4. M

    What are the most commonly used programming languages in industry?

    hi guys, so I'm in my third year at a UK university, studying Aerospace (Avionics mainly) Engineering. We've covered some programming in different modules. Some Matlab, some Java, some C. However, I'd like to start learning more thoroughly. Which languages are used the most in...
  5. W

    How much embedded programming in control/signal processing?

    Hey there, (I apologize if this is in the wrong section - please move it if it is) I'm an EE undergrad, and I'm wondering how much embedded software/programming is involved in fields like control and signal processing. To be a bit more specific, by "embedded software," I'm referring to...
  6. pairofstrings

    Programming language in MSN/Y/MS Office?

    My question is simple. And that is: How to find out the programming language used in creating the softwares that we use on our different platforms/architectures/instruction sets? Is there any method to find it? Is it necessary that all the windows based software use C/C++ to create softwares...
  7. S

    Astrophysics - Which Programming Language

    I've done a very small amount of C++, but I don't want to spend the time I have to prepare on learning a language when it would have been more preferable to learn another (even though it seems you may use several language, and learning one helps to learn another.) But are there any language...
  8. J

    Late Dennis Ritchie: Creator of C Programming Language

    Dennis Ritchie died on the 8th, but I didn't find out until today. He created the C programming language. http://www.wired.com/wiredenterprise/2011/10/dennis-ritchie/"
  9. P

    Counting characters in C language

    Please explain what this C code will do : #include <stdio.h> /* count characters in input; 1st version */ main() { long nc; nc = 0; while (getchar() != EOF) ++nc; printf("%ld\n", nc); } 'The C Programming' Book says that this code counts characters but it doesn't do the same ...
  10. A

    Java Learn Java Programming: UML Necessary?

    I want to start learning Java programming,by myself. I got some PDF books. In the introduction, it talks about UML, but I find it complicated. I want to know whether it is a must to read the theory part, or I can just start on the practical part.
  11. R

    Comp Sci How to Handle Duplicate Entries in a Java Array?

    Homework Statement Write an application that inputs ten numbers from the user, each number can be between 10 and 100, inclusive. As each number is read in determine if it is a number already entered. If it is a duplicate move on to the next number, if it is unique store the number in the...
  12. Y

    Which programming language should I use?

    I was wondering which programming language I should learn for general purpose calculations and physics simulations. I already know a bit java.
  13. P

    What is EOF in C Programming Language?

    Can anyone please explain what is EOF in C programming language. Is it a value (numeric, character) or something else ?? While reading the book "The C programming language", by Ritchie I came across this term. The code was : [FONT="Fixedsys"]#include <stdio.h> /* copy input to output...
  14. A

    Optimizing Mineral Extraction: How Can Linear Programming Help?

    Homework Statement Blacktop refining extracts minerals from ore mined at two different sites in Montana. Each ton of ore type 1 contains 20% copper, 20% zinc, and 15% magnesium. Each ton of ore type 2 contains 30% copper, 25% zinc, and 10% magnesium. Ore type 1 costs 90$ per ton, while ore...
  15. R

    Programming details on the computation of the Riemann zeta function using Aribas

    (1) Let s be a complex number like s = a + b i, then we define \zeta(s) = \sum_{n=1}^{\infty} \frac{1}{n^s} Our aim: to compute ζ(\frac{1}{2}+14.1347 i) with the help of the programming language Aribas (2) Web Links Aribas...
  16. M

    MATLAB Writing MATLAB Program to Construct D and Count Ones for N=100

    Hello, I need help with the following: "Let D be an N×N matrix. The element d[SIZE="1"]ij (i=1,…,N;j=1,…,N) of D is 1 if the sum of all the elements of the Pascal matrix of order i equals the sum of all the elements of Magic matrix of order j, and 0 otherwise. Write a Matlab programme...
  17. K

    Fortran How can I fix issues with passing values between subroutines in FORTRAN?

    Hi all, Greetings. This could be a basic question, and if it is, pardon me for my ignorance as I am a newbie to FORTRAN. I am trying to modify a FORTRAN code where I have added a subroutine (say SUB1) to calculate a variable, say (QX). What I did is to call this subroutine in another one...
  18. F

    Why Linear Programming at all?

    I am taking Linear Programming and I haven't completed the course yet, but here is my question. I've notice that all these problems could have been solved just as easily with Lagrange multipliers. We got a bunch of linear inequality constraints and an obj function, we can use Lagrange...
  19. G

    Software for typing programming papers

    Just like there's LaTeX for writing math papers and LaTeX editors to parse it, is there anything for writing papers in programming? Specifically a nice way to automatically format code.
  20. Z

    Linear Programming degenerate case

    Homework Statement Choose the number \omega so that the following program has a solution. Then write down the optimal solution. \begin{bmatrix} -1 & 2 & 3 \\ 2 & 3 & 1 \\ -5 & -4 & 1 \end{bmatrix} x = \begin{bmatrix} 1 \\ 5 \\ \omega \end{bmatrix} min=x_2 x\geq 0 Homework...
  21. F

    Matrix theory question (to do with Linear Programming)

    Homework Statement Suppose we have a maximum LOP P max z = c^t x s.t. Ax \leq b x \geq 0 and the dual to P is min w = b^t y A^t y \geq c y \leq 0 Then the bounds are z = c^t x \leq y^t Ax \leq y^t b = b^t y = w question Okay where the heck did y^t Ax came...
  22. F

    More Linear Programming - help

    Homework Statement A small cargo ship leaving Hawaii for London has three holds for cargo. The forward hold has a capacity of 140 tons, and volume of 6,000 cubic feet; the central hold has a capacity of 800 tons, and a volume of 15,000 cubic feet; the aft hold has a capacity of 450tons and...
  23. F

    More Linear Programming - DUality

    Homework Statement Consider the following LOP P: Max z = 3x_1 + x_2 -\frac{1}{2}x_3 s.t. 2x_1 + x_2 + x_3 \leq 8 4x_1 + x_2 - x_3 \leq 10 x_1, x_2, x_3 \geq 0 1) Find a primal solution x and its objective value z = z(x) 2) What is the LOP D that is Dual to P? 3) Find a dual feasible...
  24. F

    Linear Programming - Feasible sets?

    Homework Statement Consider the following LOP K: Max z = 4x_1 + 3x_2 s.t 7x_1 + 6x_2 \leq 42 2x_1 - 3x_2 \geq -6 x_1 \geq 2, x_1 \leq 5, x_2 \geq \frac{1}{2} (a) Decide whether the solution sets are feasible i) x = (3.5, 2.5)^t ii) x = (2.1, 4)^t iii) x = (5,1/2)^t (b) Graph the...
  25. G

    Good software for programming animated physical simulations?

    I'm looking for what might be best for simulating various physical phenomena - some examples off the top of my head might be how to create an animation of a double-pendulum, or a system of 250 particles that are mutually interacting, confined within some box, in an arbitrary external field (like...
  26. J

    Where do physics and programming overlap?

    I'm taking a calculus-based introduction to physics this semester and I'm finding it fascinating so far. The idea that there is a reason and a method for everything really resonates with me and that has lead to me really enjoying this course. I'm also really into programming. I've spent quite...
  27. D

    What is the best way for a beginner to learn smartphone app programming?

    Hey all, I have an idea for a smartphone app but know nothing about how to program them. I have taken an intro programming course in which I learned C++ and MatLab but I cannot figure out which language smartphones use (I have looked online and have found many possibly unreliable answers). Is...
  28. R

    Linear Algebra (Linear Programming) Feasible solutions and extreme points.

    Homework Statement . . . . (c) Find a feasible solution that is not basic. (d) Find a feasible solution that is not an extreme point: justify your answer by using the definition of extreme point. Homework Equations The Attempt at a Solution The whole question is not that...
  29. X

    Schools Self teaching computer programming vs taking a credit class at college

    I'm not really a big fan of computers but I understand there importance to physics. My school offers computer programming classes for engineering and science majors but I don't want a extra formal class that isn't required. Do you think it would be a good idea to self learn all of the programming?
  30. N

    Selecting a Final Year Project: Power & Programming

    Please give me some advice on final year project selection. I want a power related project with heavy programming involved. Thanks for the help guys!
  31. Z

    Linear Programming double inequalities

    Homework Statement Find the dual of -d \leq Ax-b \leq d x \geq 0; c \cdot x = min where A is mxn matrix and x,d,b \in \mathbb{R}^n Homework Equations dual of canonical is of the form maximize b \cdot y A^{T}y \leq where y \in \mathbb{R}^m The Attempt at a Solution I tried...
  32. R

    Linear Programming - Restating a System as a Canonical Primal

    Homework Statement State the linear system Ax = b as a canonical minimum problem. What is the dual program? Homework Equations The canonical minimum problem is Ax = b, x\geq0, c\bulletx=min.The Attempt at a Solution I'm confused here, in part because there is no objective function...
  33. S

    How Do You Program an LED to Flash at Different Speeds Based on Button Presses?

    Im trying to write a program that flashes and LED at a rate that a button is pressed. Cycle to 1 of 5 preset speeds each time the button is pressed... cannot figure out how to do it please help :/
  34. W

    MATLAB Programming languages v Mathematica/Matlab

    Can anyone give me a quick answer to this question: For scientific calculations, modelling, producing graphs etc, what advantage is there to coding in Java, C, C++ , as opposed to just using much simpler programs like Mathematica or Matlab? Thanks!
  35. M

    C Programming: Simulate Program to Calculate xxx(17)

    Homework Statement Simulate the following program #include <stdio.h> int xxx (int n) { int count; count = 0; while ( n >=2) { n = n/2; ++count; } return count; } main() { printf( "xxx(17)=%d\n", xxx(17) ); } Homework Equations The Attempt at a...
  36. M

    C Programming: Simulate xxx(333) = 2

    Homework Statement Simulate the following program #include <stdio.h>int xxx ( int n ) { if ( n < 10 ) /* A */ return 0; else return 1 + xxx ( n/10 ); /* B */ } main() { printf ( "xxx(333)=%d\n", xxx(333) ); } Homework Equations The Attempt at a Solution I'm not sure if this is...
  37. A

    What skills are required for programming internship?

    It would be fantastic if someone could come up with a rough list of what you think the necessary skills are for a programming internship. Let's say in C#, for example. I read that companies want interns who are (in theory) very proficient at a language but want to apply their learned skills in...
  38. Z

    Programming and Physics. How do I start?

    I have been programming for quite awhile, but never extensively studied it. I took a AP Computer Science course that was taught in Java (Passed with a 5). I have known Java since 9th grade (4 years as of now). I learned Fortran 90 at Governors School for computational physics. I did a little C...
  39. M

    Can Excel Handle Dynamic Ground Profile Simulations for Survey Computations?

    My professor wanted us to create a program that will automate the computations for our leveling practices, e.g. Computing height of the instrument when elevation and backsight is given etc. that may be tabulated. I believe excel would be the best bet for that. But he also included that we must...
  40. K

    Programming Quantum Computers - Classical Techniques Obsolete?

    This question has been bugging me. I have a math degree, and my computer knowledge is limited to VERY BASIC programming and being able to build my own PC, so I thought this would be a good place to ask. Note: This question has no "clean cut" forum to fit into. I read ALL the forum...
  41. jegues

    Programming Riddle/Challenge (Timestamp/HMAC)

    I'm doing an online "hacking" challenge and I'm trying to get to the next level. On the current level, we're given the Caption "Think fast", asked the following question, "What is element x in the Fibonacci sequence, where element zero is 0?" Where x is randomly generated. When I...
  42. A

    Formulation of a linear programming model

    Ok, so the title didn't allow me to be too descriptive. Basically, I'm trying to formulate a variant of the time constrained traveling salesman problem. I read a paper "An Exact Algorithm for the Time-Constrained Traveling Salesman Problem" by Edward Baker which formulated this problem of a...
  43. pairofstrings

    C/C ++ & Assembly mixed programming material

    Can anyone suggest me good books on 'C/C ++ & assembly mixed programming' for embedded system coding. I am trying to gain expertise in mixed C/C++ & assembly mixed programming for writing embedded system codes. I am fairly new to mixed programming. I know C/C++ and assembly languages. Now, I...
  44. K

    Efficient VB.NET Table Archiving: Move Records Between Tables Monthly

    I have a table in access, it is linked to vb.net by jet oledb provider. I want to move all the records of this table to a new table which may already contain records. I have to move all the records of table 1 to table 2 at the 1st of every month. Table 2 may contain records, these should not be...
  45. K

    How much programming is a statistician supposed to know?

    Should one who is trying to be a statistician supposed to know ALOT about computer science? Should i take up to 2nd year courses on computer science? Would they need to take design and analysis of algorithms or computable functions
  46. Tungamirai

    Programming language and artificial intelligence

    What programming language is used when creating artificial intelligence.
  47. F

    How to gain programming experience

    I've been trying to look around for projects to do in C++ to gain programming experience but I can't really find any. Can anyone here suggest any programming projects a non-expert in C++ can do? Or would working through this class be a good way to start...
  48. V

    How usefull will basic programming skills be as a physicist?

    Currently I have no programming skills at all. I am considering mastering in Theoretical Physics and was wondering how strongly I would be recommended to learn some basic programming skills. Also if it is inconvenient to follow any programming classes at my university at the moment what would be...
  49. K

    How does one become proficient in programming?

    Hello all, I'm currently taking a programming course using C, and I find programming to be pretty interesting. After I finish the course, I want to learn a couple other popular programming languages (C++, java etc) on my own. So, what should I do to REALLY become good at programming...
  50. C

    Programs What can I do with a computer programming degree?

    Hello, I went into computer programming as a career field right out of high school, I've only got an associate's degree in it but I'm just curious what kind of job out there would work well with a chemistry/physics degree and how well is the job market for science-type degrees? Is the job...
Back
Top