What do these Fortran (90) statements do? [closed] - syntax

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have run into the follow code and I do not understand it. What does it do?
A(*)
do n=(k,k-1,j+1-k)

A(*) looks like (part of) the declaration of an 'assumed-size array'; the typical use of this would be in the declaration of a dummy argument to a procedure. Distinguish carefully between assumed-size and 'automatic' arrays. Assumed-size arrays are deprecated in modern Fortran but common in FORTRAN77 and earlier variations.
do n=(k,k-1,j+1-k) looks like a syntactically-incorrect loop statement. The correct form would be do n=k,k-1,j+1-k which loops over the range [k,k-1] in strides of size j+1-k.

Related

Encrypted Text - Where to Start [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
So I have an encrypted text I need to decrypt, where do I start and is there a program that automatically recognizes an algorithm ? Here is a snippet of what I need decrypted:
e302446c4b62c02dc77b3c896ef385c64244a83bd6702b215882d3f1b599ff69
Encrypted text is designed to resemble random numbers. Cryptographic algorithms are designed specifically to keep you from doing exactly what you are trying to do.

VHDL gray code counter [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm trying to implement a gray code counter using a shift register and a 4-1 MUX. Does anyone have an idea what logic to use?!
Thanks
I am not sure if this satisfies your requirement of "using a shift register and a 4-1 MUX", but here is a small and functional gray counter reference design by Altera:
https://www.altera.com/support/support-resources/design-examples/design-software/vhdl/vhd-gray-counter.html

Comparing multiple values in an if statement - Ruby [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Can you compare multiple values in a single if statement in Ruby? If so, how? I know in other languages, you would just use a double ampersand (&&), but I have never seen any example or documentation about it, even in the official ruby documentation! Thanks for all the help in advance.
Yes, you can use the && operator
if a == 1 && b == 2
# do things
end
It IS in the documentation.
http://www.ruby-doc.org/docs/ProgrammingRuby/html/tut_expressions.html#UG

Searching for numerical algorithm realization [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Im searching for numerical algorithm realization for nonlinear equations system solver on PHP, C, C++, Java (with readable code :). Where I can find them?
Thx.
Look in Numerical Recipes -- the latest edition has reasonable C++ code. Even if they don't have code to exactly solve your specific application, there's a good chance they have something you can use.

Algorithm to "learn" from user input [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Like the 20Q, is there a published algorithm that allows a program to "learn" from user input?
Programs like junk mail filters learn from what you tell it and uses that information to make more insightful choices in the future when classifying an email as junk.
Mahout is one open source machine learning library. It has implementations of a few different algorithms

Resources