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.
Physics Forums now supports GeSHi syntax highlighting for nearly 200 programming languages. Simply hit the + button on the editor. Select the code option, use general code, type in your code. Then in the first bbcode tag put in the language you want to use. For example:
C AREA OF A TRIANGLE -...
Thoughts on this?
http://journal.frontiersin.org/Journal/10.3389/fgene.2014.00140/full
The codon redundancy (“degeneracy”) found in protein-coding regions of mRNA also prescribes Translational Pausing (TP). When coupled with the appropriate interpreters, multiple meanings and functions are...
Hello all,
There is a subroutine in the code I'm working on that looks like this:
subroutine onestep(iter,iegy,icos,jcos,iphi,rinit,rfin, &
& v2,v2bar,hel,helbar,drdis, &
& psib,psie,psibarb,psibare,err)
use params
use helectron
use angles
use neutrinodist
use parallel...
Homework Statement
Give the ASCII code for the hexadecimal number B7.CF (including the code for the hexadecimal point)
The Attempt at a Solution
This was one of the questions given on a problem sheet in my computer science class. I missed the exact lecture when this was taught so I...
Hey everybody, I am a mechanical engineer and new to Fortran(I have decent experience in programming in C, Matlab and understand languages similar to them). However the Fortran programming structure is new to me. Hence I am facing problems debugging a Fortran code.
Here is the link of the code...
Here is a python function to check whether a given list or string contains duplicate values:
def has_duplicates(x):
t = []
for i in x:
if i not in t:
t.append(i)
if t != list(x):
return True
else:
return False
But I am sure this approach will be slow for...
Hey everybody, I am a mechanical engineer and new to Fortran(I have decent experience in programming in C, Matlab and understand languages similar to them). However the Fortran programming structure is new to me. Hence I am facing problems debugging a Fortran code.
Here is the link of the code...
Dear all,
Let me introduce myself first. I am Ilango from India. I am new to Fortran, mostly working on Matlab, Modelica & Dymola. Working in an automobile company I was required to go through some battery models and hence landed at this page. http://www.cchem.berkeley.edu/jsngrp/fortran.html...
HI guys,this is my first programming experience , i have developed an MATLAB code for steady state heat conduction equation , on governing equation
dt2 /dx2 + dt2/dy2 = -Q(x,y)
i have solved this equation with finite difference method, As far as i know if we increase the mesh size it leads...
I've been maintaining and updating some legacy code for a while at my job. These Dilberts came up the other day
http://www.dilbert.com/2014-08-11/
http://www.dilbert.com/2014-08-12/
I see people disparage others work/code all the time, and it frustrates me. I give people credit /...
This simple code is test the write and read of EEPROM.
Firstly the LED at P1 will have all LED on, after a sec, have the P1 will have LED on.
Next, code is to write 01010101B into the EEPROM.
CJNE will check to see if it is written.
But, after comparing, the data isn't similar...
Hello,
I am a graduate student attempting to run evaluate the depletion of a ceramic film attached to the moderator-side of the fuel clad. I am having some issues with my MCNP syntax/code and I was wondering if one could assist.
My input file is attached. I am not looking for someone to...
I have least squares code which I am trying to rewrite in FORTRAN90.
I have a pair of allocatable arrays declared in MAIN. I pass those unallocated
arrays to a subroutine where the arrays are allocated and data is assigned.
However, I get segmentation faults every time I try to run this...
I found some open source code in wx that I'm considering re-writing in qt and adding some new functionality to. It's for science research.
Before I do, I wanted some feedback from the community if this is a worth while endeavor and an estimate of how long it would take. It's about 700 lines...
Homework Statement
Hardware redundancy is important in many real-world engineering systems. Specifically, installing
multiple sensors that measure the same quantity provides a level of safety in the event that one
instrument fails during the mission lifetime. You do not want an expensive...
I want to know color code for this resistor
---> 1KΩ \pm 10%
I have check in two sites. This sites showed me different color code for this resistor value.
Which one is right i don't know i am confused!
http://www.digikey.com/us/en/mkt/calculators/4-band-resistors.html
(this...
Hello,
I am taking MATLAB this summer and will be having a number of questions on this forum about all my bugged code when I make it. Before I begin, I was wondering how do people add those ''code boxes'' when they make a thread that shows all their code within the post.
Thanks
Example: Post...
I've been programming on and off for a few years just recently taking it seriously. Something I've always wondering about is how the computer understands the commands I type in. Is it essentially binary? and if so how could 1's and 0's possibly create something as complex as a video game or an...
Hi, all there is an example for gui but I can not do. Could somebody help me. I generated a button in gui then I have to add some function on in. Codes are in the picture. Will I add them under callback function? Why can I not determine where I should I add them. To understand it
what...
I was looking at an example from here: http://cboard.cprogramming.com/cplusplus-programming/133294-passing-operator-parameter.html
template <class T> bool myfunc(bool lv, bool rv, T oper)
{
return oper(lv, rv);
}
struct Or
{
bool operator()(bool lv, bool rv)
{...
hey guys,
So I'm working on a MATLAB function that uses simpsons 1/3 rule to find an integral.
This is what I have done so far, but I'm not 100% confident.. I seem to get double when I use greater segments.
If anyone would be able to have a look at give me some tips that would be very much...
Why do I need a "processing" code when I pair Arduino with bluetooth
I have a need to connect my [Arduino+Bluetooth dongle JY-MCU V1.02] to my laptop in-built bluetooth device.Most forums suggest using a processing code to go ahead and do this...
Homework Statement
What is the maximum allowable probability of error is a typical digit in order that the (8, 4) Hamming Code can be used with probability .999 that the receiver will not be misled (i.e., 3 or more errors occur) in a single word?
Homework Equations...
I have some F77 code and I am wondering if it is possible to inject external code into a separate file and call it without it being a subroutine, and placed into the code. An example would be :
a = 1 + 1
b = a + 1
c = b + a
a = c + b
d = 4 + a
and I want to take lines 3 and 4 and...
Hello all,
Does it occur that anyone here working on OFDM communication systems? I need a MATLAB implementation of such systems in the continuous time. I will provide the math derivations if requested.
Thanks
And this is why I'm going to hazard to guess that the next century of biology will be heavily dominated by the study of post translational modifications. The genome only encodes ~26,000 genes, and the entire end product of the genome+epigenetics--the proteome--only is comprised of roughly...
What is the most commonly used programming language for microcontrollers?
I have done programming in machine code and it is a pain. I will get better at it if I have to, but would rather use a high level language like C.
I hear C is much easier to write programs with than machine code...
Hello everyone.
Sorry if the question is silly, but in really need to know something.
We know that The Fourier transform of time is frequency and the inverse of frequency is time.
In Matlab can anyone tell me how to write it ? Because in the book Non linear fiber optics by Agrawal we found that...
Code: Random number less than specifed value
This isn't really a homework problem. I'm just doing this for fun and giggles. But given the nature of the forum rules, I'll post it here.
Homework Statement
Create a method (function) that returns a random number less than the specified...
Hi,
For some reason, when I run this MATLAB code, I'm getting what looks like about 10,000 for Rf for the largest Vo on the graph, but MATLAB is giving me Rf at (Vo)max as 100,001
Any ideas?
clc;
clear;
close all;
syms Rf
Rf = 0:0.1:100000;
VRt25 = 18.*(10000)./(10000 + Rf)...
Hey folks! Wow...been a while since I posted here.
So this ought to be a simple script I'm running in Command Prompt, but it completely skips the part where it asks the user to enter a number (after asking how much would you like to withdraw (or deposit) )
What gives?
<?php...
I have been trying to implement this Wave equation into java:
A = amplitude of wave
L = wave length
w = spatial angular frequency
s = speed
wt = temporal angular frequency
d = direction
FI = initiatory phase
Y(x,y,t)=A*cos(w *(x,y)+ wt*t + FI;
I...
Hi,
So what I'm trying to do is enable visitors to the site pesterlog.tk, provided they have the correct login details, to change the code on the site. So say there was a page pesterlog.tk/user1, if user1 visited the page, (s)he could just enter the login details and change the code on...
ok I have been troubleshooting this code left and right... but I am still not getting what Mat lab is getting...
can someone please look at this for me ?
private float Fs;
private int N;
private Complex [] F;
private int R;
private Complex[] x...
ok I wrote my own FFT class and I now have MatLab on my computer. I am comparing my code to mat-lab.
so my test i used it this :
for (int y = 0; y < 100; y++)
{
double temp8 = (2D * (Math.Sin(2D * Math.PI * 4D * (double)y / 100D)))...
A quick google search found that there are 2 kinds of bar code scanners. One uses ambient light and a CCD device, these obviously would have no problem with a bar code on a screen since it is essentially just taking a picture.
The other kind sweeps a laser over the bar code and reads the...
Thank you very much for the reply. I placed the file in the same directory as the program and opened the file before executing and everything was just perfect. But my other problem is that, in my data, there consists of negative numbers. Is there a way to read the positive inputs without the...
I am programming in fortran 90/95 and i have a problem opening an existing file for input. I have written the code without any errors, but at compilation time, the file to be read cannot open. It is as if the program does not know the location for the file. I would like to know if there is a...
Im trying to find movies like the 2 that I mentioned above. Where by majority of the scenes take place at one place. For source code was on the train, and for getaway was in a car.
Does anyone know what do you call this type of movies. :D