Code Definition and 960 Threads

In communications and information processing, code is a system of rules to convert information—such as a letter, word, sound, image, or gesture—into another form, sometimes shortened or secret, for communication through a communication channel or storage in a storage medium. An early example is an invention of language, which enabled a person, through speech, to communicate what they thought, saw, heard, or felt to others. But speech limits the range of communication to the distance a voice can carry and limits the audience to those present when the speech is uttered. The invention of writing, which converted spoken language into visual symbols, extended the range of communication across space and time.
The process of encoding converts information from a source into symbols for communication or storage. Decoding is the reverse process, converting code symbols back into a form that the recipient understands, such as English or/and Spanish.
One reason for coding is to enable communication in places where ordinary plain language, spoken or written, is difficult or impossible. For example, semaphore, where the configuration of flags held by a signaler or the arms of a semaphore tower encodes parts of the message, typically individual letters, and numbers. Another person standing a great distance away can interpret the flags and reproduce the words sent.

View More On Wikipedia.org
  1. R

    MATLAB Problem regarding Matlab code for n no of quantum well

    I have written a code which is something like that clc X = input('Molefraction of Al in system:'); n=input('no of well:'); width=zeros(1,50); for j=1:(2*n+1) width(j,:)=input('length of areas:'); end del_eg=1.247*X; V1=0.6*del_eg; V=zeros(1,100); for j=1:n...
  2. G

    MATLAB How to write Matlab code for a multivariate Beta distribution

    Hello, I am working on a problem in which I first sample two unknown probabilities, p and q, from Beta distributions, and then I want to sample both of them at the same time from a multivariate Beta distribution. This is the code that I have for sampling p and q individually from Beta...
  3. D

    Can You Crack This Code for a Job as a European Spy?

    http://www.canyoucrackit.co.uk/index.asp If you can crack it, you will get a job as a European Spy! That's the link to where you can attempt to crack the code. You get unlimited attempts! P.S. If anyone gets the code, please feel free to post here, lol
  4. R

    Designing a Modulo-16 Up/Down Counter with Grey Code State Assignment

    Homework Statement design an up down modulo-16 counter. use grey code state assignment, when x=1 the counter is to count up. when x=0 the counter is to count down. when the terminal cont of 15 is detected and the unit is counting up or when the terminal count of 0 is reached and the unit is...
  5. A

    ASME Boiler & Vessel Pressure Code Links

    Dose anybody can give me link for ASME codes for boiler & vessel pressure. Thanks
  6. J

    (TexnicCenter) How to locate errors in code

    Hi I recently uploaded what I think is the most recent update to TexnicCenter. In the past, when I built a file, I could double-click on an error message in the output window and a green arrow would appear at the line number in the source code where the error occurred. That doesn't work...
  7. H

    Is it okay to use 1D smoothing code for 2D path smoothing?

    Hi, I am trying to smooth a path defined in 2d by (x,y) which varies in time. I am using the Numerical Recipes 1d smoothing C code functions savgol() and convlv() to smooth x and y independently, which seem to do a pretty good job. However, while it seems to work, I was wondering if I should...
  8. M

    Python Why does this code work, python

    This isn't quite homework, it was just in my textbook as an illustration. Below is a function to return a list in reverse order. Why does it work? My brother tried to explain it to me but failed to clarify. The only line I don't understand is the third and what process takes place because of...
  9. J

    Fortran Small FORTRAN code for combinations. BUG

    small FORTRAN code for combinations. BUG! PROGRAM test implicit double precision(a-h,o-z) INTEGER :: r=2,n=4,k=1 INTEGER,allocatable :: comb(:) !array to hold a set of combinations allocate(comb(r)) comb(1)=1 CALL iterate(1,n-r+1,1) CONTAINS...
  10. M

    Python Python code for generating prime# list and evaluting a number

    Homework Statement I am attempting to allow a user to enter a number and check to see if it is in a list of already generated prime numbers Here's my attempt Where can I put the code to allow the number to be checked, the prime list generator works fine alonedef buildPrimeList ()...
  11. W

    Opinion regarding included code

    Seeking opinion regarding included code. //Processing - Processing.org int _size = 256; int _mx, _my; Ordinate _x, _y, _one; void setup() { size(this._size, this._size, P2D); _x = new Ordinate(this._size); _y = new Ordinate(this._size); _one = Ordinate.One(this._size); } void draw()...
  12. V

    Triton Depletion Code for SCALE: Solving Reactor Core Activity Issues

    Hi I'm wondering if anyone has experience working with the triton depletion code for SCALE? I'm having some issues when I'm trying to calculate the activity in radioisotope targets surrounding my reactor core.
  13. R

    C/C++ Any ideas for a small c++ code I could make?

    I thing I've got the hang of the basics of c++ and want to try and make some thing that actually has a function other than just making code to calculate something that I could already have done using a calculator. Anyone got any ideas and then when I make I code post my code and see if any...
  14. R

    Weights & Code Words of H(4) & H(5)

    Homework Statement The question is as follows: Give the appearing weights of the generalized Hamming codes H(4) and H(5). Also give the amount of code words per weight. Homework Equations The generalized Hammingcode is defined code existing of all h \in F^{n}_{2} which satisfy h . v =...
  15. R

    MATLAB Improve Matlab Code Performance for Insulated Bar Internal Temperatures

    This code calculates the internal temperatures of an insulated bar with left and right side boundary conditions of 350 K. The initial temperature of the bar is 250. This is not part of the assignment, but I want to get in the habit of optimizing my code. Is there any way to further improve the...
  16. matt_crouch

    Matlab code fitting a line to a histogram

    Im analyzing some data from a previous student I am trying to plot a line of best fit over the histogram and hense find the value of the coefficiants the files had to be loaded as -ascii so this is the code i have typed so far x=load('filename.mat','-ascii'); mean(x); hist(x,300) this...
  17. M

    Big endian and Little Endian, how to code for reversing binary value?

    Homework Statement I am trying to create a program that will convert big endian to little endian notation and vice versa. I found a way to represent unsigned integers and display their binary value. Can I use this program somehow to accomplish my goals. I am going the right way? Homework...
  18. J

    Help in Mathematica code for solutions expansion of differential equations

    About serval differential equations where A, B, D, g, \chi, c are functions of r \begin{eqnarray} &-\frac{{\chi}'}{r}+\frac{c'}{c}\left(\frac{g'}{g} -{\chi}'\right)=\frac{e^{\chi}(q A B)^2}{r^2 g^2 c^2}& \\ &c c''+c c'\left(\frac{g'}{g}+\frac{2}{r} -\frac{{\chi}'}{2} \right)=-\frac{B'^2}{2...
  19. Reshma

    Help with scilab code for calculating transmission coefficient

    I seem to be getting some arbitrary values from my Scilab code for a function. I have to generate a graph showing the dependence of the transmission on the air gap separating two higher refractive index materials i.e. I want to plot "T" as a function of "d". T = \frac{1}{1 + \beta \sinh^2...
  20. U

    MATLAB- image processing need idea for code

    Homework Statement As per the attached picture, we are basically trying to find out the time interval between the instants that the particle (black dot) is in the first region of interest and the instant that it is in the second region of interest. i have a video in which the particle in...
  21. P

    MATLAB Understanding the @ Rule in MATLAB Code with Quad Command

    HI every one what's the @ rule in the MATLAB code? especielly when we use quad command.
  22. nukeman

    Comp Sci Can someone look over my C++ code - Simple short code

    Homework Statement My computer crashed, so I can't check my code I wrote, and the school linux lab is full, so I really need some help. I already wrote the code (ill post it below) so I can't compile it and check for some errors. Can anyone quickly glance it over and see any mistakes...
  23. M

    Cryptographically secure code obfuscation

    I got to thinking about code obfuscation. Current code obfuscators use ad hoc techniques like symbol renaming. But is it possible to have a cryptographically secure code obfuscator that outputs programs that work the same way as the originals, but provably no one can understand? So here's...
  24. C

    Most significant bit (MSB) in ASCII code

    Hello You know that the MSB in each byte is always zero in ASCII code (e.g. text file). If I cut the text file by byte, then there will be 0 (which is MSB) that might reveal some information... So, are there any stochastic rules that I make the strings random in ASCII code? It will be...
  25. K

    Mathematica Looking for a generic code using Mathematica

    Dear all, Iam looking for a generic code that could express the following functions: Subscript[mata, 1] = hl[[1]]; Subscript[mata, 2] = matg[[2]].hl[[1]] + hl[[2]]; Subscript[mata, 3] = matg[[3]].matg[[2]].hl[[1]] + matg[[3]].hl[[2]] + hl[[3]]; Subscript[mata, 4] =...
  26. N

    MDS/cyclic code, binary string question

    Homework Statement Suppose n\leq2 Let C be the code consisting of all binary strings of length n in which the sum of the bits is even. Is C and MDS code? is C a cyclic code? Homework Equations An MDS code is one where the codewords are separated by a maximum number of bits d. MDS codes obey...
  27. S

    LaTeX How do I auto-fit brackets and fractions in Latex without using \Bigg?

    I recently deleted my Latex code for my dissertation and now I'm starting from scratch. In my last code I had a line of code at the beginning that does all of my auto fitting for brackets, fractions etc. without having to worry about using \Bigg etc. but I can't seem to remember what it is, I...
  28. R

    C/C++ Is C++ code different on mac and PC

    I'm about to start a module in C++ programming and I was just wondering if the code I learn in college (on P.C's) will be useable on macs Xcode. As in will I be able to EXACTLY the same code on both?
  29. Saladsamurai

    LaTeX What Happened to LaTeX Click-to-See Code Function?

    Once upon a time I could click on a LaTeX image and a new window with the code used to generate the image would pop up. This was super useful in learning LaTeX. This function gone?
  30. A

    Mathematica Mathematica not supporting graphs code is as

    mathematica not supporting graphs,,,code is as Dear Fellow I was trying to make graph using mathematica but because of imaginary appearing mathematica is not supporting don't now how to evaluate the graph,,where code for mathematica is as rho = 1.74*10^(3); lambda = 9.4*10^(11); mue =...
  31. M

    C# Where can I find a plethora of C# program codes on Planet Source Code?

    please i want c# programs code... please i want c# programs code...
  32. Z

    Matlab code using ode45 difficulty

    Homework Statement I've been trying to get this code to work: ode45(@(t,y) fallode(t,y,B), [0, tmax], [31330, 0]) Homework Equations function dy = fallode(t, y, B) % ODE function to model a fall over a large range of % altitudes, reaching up to high subsonic Mach numbers. % y(1) is...
  33. T

    Animal's genetic code redesigned

    http://www.bbc.co.uk/news/science-environment-14492948" Just want to discuss this development. IMO, we are not prepared for this kind of revolution, unless we fully understand the implications and effect of engineering the genetic code without exactly knowing the outcome. I know this is...
  34. N

    Getting an Arxiv Endorsement Code - Neel's Guide

    Hi all, I have written a paper which I wanted to put in arxiv classical physics section. I sent an endorsement request to an endorser in the relevant section and he agreed to endorse the paper in arxiv. He asked me to send him the 6 character alphanumeric endorsement code as suggested...
  35. H

    Unsteady flow code - Problem with space loop

    Hi all, I have discretized my equations in a way that for example the velocity depends on the velocity of the previous neighboring element so: h = number of elements t = 0: 0.5 : 10 for j= 1 : length(t) for i = 2: h v(i,j) = v(i-1,j) + b p(i,j) = p(i,j) +b end end This is not my...
  36. J

    Fortran Converting equations to Fortran code

    Hi everyone I've been doing maths for quite a while now, but have never done any programming until recently. What I'm finding difficult is how you go from an initial value/boundary value problem on a bit of paper to a piece of code that will approximate the equation. I've done a bit of book...
  37. T

    How to Connect VHDL Counter Output to a Binary Decoder?

    Homework Statement structure or behavior VHDL code of a 5-bits binary counter with a sync. load signal to preset the counter to a specific initial state. the output of the counter (Q0 to Q4) are connected to a binary decoder that shows the state of the counter.Homework Equations The Attempt at...
  38. pairofstrings

    How to open any software and look at it's code?

    I want to open any given program and look at it's coding, can anyone tell me how it can be done?
  39. B

    Is Source Code Film's Interpretation of Quantum Physics Flawed?

    having watched the film source code where they try and persuade that quantum physics allows for the brain to contain infinite parallel worlds i wondered if anyone made sense of it. As far as i could tell it was total rubbish from start to Finnish. Even down to the guy managing to send a text...
  40. B

    Expanding Mathematica code from 2 dimensions

    I have this mathematica code to solve a variation of the 2 Dimensional Poisson's equation using the finite difference method. xo = .5; yo = .5; \[Sigma] = .05; q = 1; Gen[x_, y_] := -q*E^-((((x - xo)^2) + ((y - yo)^2))/(2*\[Sigma]^2)); GridNum = 300; Hstep = N[1/(GridNum + 1)]; GridPts...
  41. C

    C/C++ How to learn assembly code for debugging VC++?

    Sometimes when I try to debug my codes, VC++ brings me something I believe are assembly codes which I couldn't read at all. I want to know where I can learn these to better understand what is going on at low level. I am quite comfortable with high level programming, but I believe I really need...
  42. C

    MATLAB Improving Tumor Detection with Matlab: A Collaborative Approach

    Hey, I'm working on a DSP project that is using Matlab to improve the detection ratios of Computer aided Diagnosis (CAD). However the companies that are capable of doing this sort of CAD ensure that their code is not distributed. If anyone has or knows how to get a piece of code like...
  43. B

    Python Python code for mapping numbers n text file

    Dear Programmers I am having text file having huge data. From the text file i would like to map the two numbers that are present in the same brackets and the values should not considered if they are present in different numbers. say for example I want to map number "4758 & 3895" that are in...
  44. Loren Booda

    HTML/CSS Accessing the text code of an HTML file for editing

    I had installed FileZilla FTP freeware on my computer. Later, I was unable to edit my HTML file (pushed wrong button?) Whenever I tried to open or edit it using Word (my only editor which now seems to accept HTML), the webpage would appear, rather than the text code. I am using Windows 7 on...
  45. N

    LaTeX Learn Latex Code: Best Sources to Get Started

    What good sources are there to learn latex code? Because I'm finding it frustrating trying to post up homework problems and trying to use paint with my laptop is equally frustrating.
  46. A

    Help understanding physics code.

    Hello. I am writing a 3D physics engine for use in a game engine I'm creating with some friends. This is the first time I've written a 3D physics engine and I am having some difficulty understanding some of the math behind it all. The section I am currently struggling with is collision...
  47. MartinJH

    HTML/CSS HTML Code for Firefox to Stop Right-Click Copying

    I realize HTML isn't strictly a 'coding language' or so I've heard. I have a good friend who has a site he needs to prevent users from 'right clicking and copy'. Its a guitar tab site and he has spent relentless hours transcribing a band whos songs are far from easy. So to prevent, to a certain...
  48. K

    Mathematica How to make a simplified general code for repetitive formulations in Mathematica

    Hi there, I have altogether 17 formulations or expressions which are repetitive and have link from each other. My question is that how to make these formulation or expressions in a simpler form. In another word, how to make the codes or syntax become shorter due to these repetitive...
  49. H

    Need A Finite Element Magnetics Code That Handles Dynamic Modeling

    To the EE Forum, I am a new guy on this Physics Forum and this is my first post. I have downloaded a free software code, Finite Element Method Magnetics (FEMM) solver (see http://www.femm.info/wiki/Download) but it doesn’t work because FEMM is limited to solving low frequency electromagnetic...
  50. H

    ELP: Finding ALE Code for 1D/2D/3D FV, FD or FE

    Hi, I am looking for an example of an ALE code for 1Dor 2D or 3D.It doesn't matter if it is in an FV, FD or FE code. I just need to see how the mesh velocity and the velocity of the fluid are dealt with in the code and how it works generally. I looked at previous threads and saw the link...
Back
Top