I'm working on brushing up on some programming languages.
Being a big believer in the idea that the best way to learn is by doing, I'm looking for problems of various difficulties I can work through before embarking on some larger project. Anyone know a good resource?
#include <stdio.h>
#include <stdlib.h>
int main()
{ double a[10];
int i=0;
for(i=0;i<10;i++)
a[i]=0.0;
for(i=0;i<10;i++)
printf("a[%d]=%e, "), i, a[i];}
The result is radom number. What's wrong with my code?
/*find abs value of an array*/
int absv(double *a, int n)
{
int i;
for(i=0;i<n;i++)
{if (a[i]<0)
a[i]=-a[i];
}
}
int main()
{
double a[7];
int i,j;
for(i=0;i<7;i++)
scanf("%lf\n",&a[i]);
absv(a,7);
for(j=0;j<7;j++)
printf("%e\n",a[j]);
printf("%d,%d",i,j);
}
The...
Hey,
I was wondering, since mechatronics deals with control system and computer programming, what sort of programming language would be beneficial for me to start learning now before my university starts?
since i have around 6 months i though i would be good idea to start learning some...
Hey,
Today i was at the book store and every book regarding Mechatronics was either specifically "Robotics" or else it was math heavy books.
Is anyone aware of any books regarding mechatronics that is written for the laymen?
If such books arent even written or I am better off...
Hi, I want to ask.. suppose I have an array and a constant called threshold in my data segments
array db 1,2,3,4,5,6
threshold equ 5
I want to compare my array elements with the constant, and only display/print the number which is less that the threshold, if there are none, display the...
Hi
I'm neither a student of math nor of computer science. So, please keep your replies as simple as possible.
I have always been under the impression that learning an unnatural language such as a computer language, e.g. C or C++, is all about memorization as is learning DOS commands. Is...
As computers become each time more important to do computations in physics, it is important to know which programming language would be the most important for a physicist. What do you think?
Hi everyone,
I am trying to decide on which foreign language i should learn. My requirement is filled from high school,although I don't remember a thing from it, and I didn't really learn that much to begin with anyways (I could have simple, very slowly spoken conversations).
I hear that a...
To whom it may concern,
I am looking for any articles on the uses of the preposition "of" in mathematics. I once read in a teacher's edition of a pre-algebra textbook that suggested students should be taught, as early as possible, the many uses of the preposition "of" in mathematics, but I...
Hello, so I am a junior in college right now...I am double majored in mathematics and computer science. I was curious, I know C++ pretty well and was interested in starting web development languages. I know I will have to learn html and SQL as they are pretty much standard for web...
where or how did language come from ,ive been thinking about this for a long time i think it may have evolved ,very slowly like this maby many thousands of years ago a leader or head of a tribe might have used words or noises or grunts close to what we now know to get the attention of his tribe...
I think it's easy, but I don't get it.
Given the machine language instruction 0x00221820. What MIPS assembly instruction does it represent?
I know the solution. It's add $3, $1, $2 I just don't know how to get there.
I know I have to convert the numbers into binary first. So you have...
I'm interested in learning how to program, however there so many ones (C++,Python,Java) and IDK which one is the best one to learn for beginners.
Suggestions? Also would it be good to get a book or find a guide online?
I think there are only two primary languages, i.e. natural language and mathematical one, which we use to communicate . If we go one step further, then I would say even mathematics is a subset of natural language where we use symbols and other signs to represent our concepts, ideas into...
University has finished for me this year until late February of next year, so i currently have plenty of spare time (and loving it) :smile: Normally over the summer holidays i like to just have a break from uni study, but i am still always keen to learn something--something that i want to learn...
I am in a class where we are studying concepts and design of programming languages. For a project we are suppose to design our own programming language or come up with some alternative project idea to do for the class.
So, my question is... do ya'll have any ideas for an interesting and...
Homework Statement
Prove or Disprove L is regular, where
L = {0^{i}1^{j} | (i^{2} + j^{2}) is square}Homework Equations
N/AThe Attempt at a Solution
I tried using pumping lemma, but I don't know how to assign p if there are two variables (i and j)...
I understand the i^{2} + j^{2} would be...
Hi,
I don't understand why one says "kocham cie" (I love you) and "wybaczam ci" (I forgive you). I mean, why "cie" in one case and "ci" in the other?
Is it because the verbs are from different groups? What are the rules of using ci and cie?
Dziękuję. :smile:
I'm currently in a computer science class in my senior year of high school and we're learning java. I was wondering if this is going to be the language I would be using in the workforce after college if I graduate with an interactive media degree. I've heard multiple people say that java is a...
I am currently taking a computer science II class in high school, in which we use java, and my teacher does not really know how to go about teaching and when she tries to help usually makes things worse. Does anyone know of any sites to help teach/reinforce the java language?
I'm reading the book Basic Set Theory by: Azriel Levy as I thought it might help me better understand Group Theory and Matrix Math. I have read the first chapter a number of times but I keep getting hung up on some of the syntax of the basic language or language of first-order predicate...
Hello,
The language of concept/perception - I’m not sure if this topic makes sense, but...
Let’s pretend that humankind has not created letters and words yet, that every group of people from different corners of the globe communicates by murmurs and sound --- I assume this is how our...
The Information Theory and Cybernetics (Shannon, Wiener) and the perspective of some physicists (Schrödinger) was very influential on the development of Molecular Genetics.
The molecular genetic approach showed its power to explain a lot of biological and medical problems, from evolution...
I've been looking for a free download of a programming language that is easy to use and handles large numbers for a number theory problem I'm working on. I will report my results here after I use it. My TI isn't powerful enough and my other programmable calculator that I downloaded, graphcalc...
This thread made me wonder what this forum could come up with.
http://mathoverflow.net/questions/22299/what-are-some-examples-of-colorful-language-in-serious-mathematics-papers
What has everyone seen that seemed a little out of place in a serious article or book? I can think of some, mostly...
I'm an EE with a fried brain right now, how would you describe the device in the attached picture in technical language?
So far I've called it a "double-jointed robotic arm with one joint affixed to a mounting surface". That sounds really bad and not descriptive.
Hi,
I am a second year civil engineering student. I have decided I want to learn a language that will help my career progress once I graduate.
Lecturers at my Uni have told me different things. One said German another said Mandarin. I think Mandarin as it is the national language of...
Hello,
I'm getting my B.S. in Physics at a liberal arts college. One of my graduation requirements is two semesters of a foreign language.
I wanted some advice about what languages are particularly useful to career physicists. Here are some ideas I've had.
Latin- useful for science...
Main Question:
Does every language used in mathematics (such as mathematical symbols and English to describe formulas, theorems, definition, proofs, and etc.) can be translated (or reduced) to first-order (predicate) language?
Sub Question:
Does every informal proof can be formalized...
Hi,
I am an undergrad majoring in Physics. I want to be a theoretical physicist. What language would help me more (in any way)? German or Chinese?
Thanks,
what to do In order to develop the proper language?
Hi all,
I'm new there and I would like to thank you for this beatiful platform. I used this weird topic name because I wasn't confident with the question, which appears to be very general.
Anyway, the matter is:
I'm a student in economics...
While listening on my english lecture, my teacher told us that authors usually have similar word choices and sentences structures on their writings.
Because of that, I began to wonder if it is possible (if it hasn't been done already) to quantify the human language (if that's the right term...
I am currently in graduate school and I work on modeling. The systems I model rely heavily on stiff ODE solvers (i.e. ode15s in MATLAB) and non-linear solvers as well for solving non-linear reaction and diffusion equations.
So far I have typically used MATLAB for my work, but I feel like...
Offensive language gets a reprieve from Court of Appeals, but rules are still vague in virtual world Terms of Use policies.http://stats.wordpress.com/b.gif?host=virtualnavigator.wordpress.com&blog=11498882&post=153&subd=virtualnavigator&ref=&feed=1
More...
As many of you know, precise language is necessary for effective communication in mathematics. Although I find that I am quite capable of communicating my thoughts effectively and clearly, I feel that there is always room for improvement.
Please recommend an introductory, and perhaps a...
I'm a semester away from transfering into a large university as a junior. I never took a language course in high school and my state requires 2 semesters of one as part of a 4 year degree.
I signed up for Spanish I next semester at my local cc, but I am having doubts as to whether or not this...
I am an student of Electrical Engineering and have already learned C language since, it is useful for programming of micro-controllers. I still want to learn some other programming language too. Please suggest me a programming language that will be useful for me for making useful softwares and...
I understand that you can write a complete operating system in a high-level language like C++, compile it into machine code, and then write it to storage, and then sell it or give it away.
But is this historically what was done? Did the compiler come first, or the operating system?
When you...
All,
I received a BS in Aviation about three years ago. Needless to say, had I known at the time, I would have chosen something a little different. I'll be returning this Fall to pursue a Physics degree with a minor in Mathematics.
During my previously bachelors, I took three years worth...
Ok I have a simple question. Let us say we have a formal grammar, let us take this simple example:
S → aSb
S → ab
This grammar generates language a^n b^n. My question is, is there a way I can tell what kind of language this generates from the rules? I can of course apply the rules and...
Hello all, particularly graduate students and PhDs,
I'm planning on learning a foreign language, mostly for fun, but I would like to learn a language used by many of my colleagues in mathematics programs. I've not yet entered graduate school (for mathematics, of course), so I was wondering...
I'm a junior physics major/math minor. I don't have any programming knowledge whatsoever. I'd rather not hassle with learning it, but I know it's a prerequisite if I want to do any research or engineering job. What should I learn? No more than I should and no less than would be prudent.
hi,
which programming language is better when working with matrices and vectors, and provides interfacing? i was thinking about either VB or Java, but i ca't decide which is better.
1. Homework Statement
Let L = {P } be a first-order language with a binary relation symbol
P as only non-logical symbol. By exhibiting three suitable L-structures prove
(informally) that no two of the following sentences logically implies the other
(i) ∀x∀y∀z(P (x, y) → (P (y, z) → P (x...
I am a math major who is about to finish his junior year. I am still not so sure what I want to do over the summer (besides starting on my senior thesis project), and since there aren't that many summer courses that might be interesting for me to take, I was wondering if it would be good idea to...