Reusable Code Snippet Matrix Multiplication using MPI Parallel Programming Approach Following is a matrix multiplication code written in MPI (Message Passing Interface) which could be run on CPU cluster for parallel processing. This has been successfully tested with two square matrices, each of the size 1500*1500. +2 I have nothing to start with.. *sigh& +0 I need to create a MULTIPLICATION TABLE with a Start Number and End Number and How many times it should be multiplied. Any tips for the looping? Thank you! +0 i'm a newbie in java and i got an assignment to do and i don't know how to start ... the problem is: Write a program that will compute for the product of two numbers without using the * operator.. Sample Output: Enter Num1 :___ Enter num2 :___ Product is :___ hope you'll help me in this one :) :) +0 Good Day guys, I wanted to make a multiplication table but it seems not that easy for a newbie like me. Mind taking your time and see what I am missing in my code? It would be a great help. Here's the code: #include #include using namespace std; void initArray(int arg1[50][50], int r, int c) { int val=1; for(int row=0; row using namespace std; int p, N = 0.0, sum =0; float average = 0.0; int main(){ cout<<"Enter the number of integers you want to enter: "; cin>>N; for … +0 Hi All, I am trying to the following: The code is written in ASP, the output is from a database. I am trying to multiply the QTY and RATE#2 and display total with each order in the returned data. This relates to the last td's in the output. I also want to data to 2 decimal places(currancy) Anything else required please let me know Thanks in advance David
" target="_blank" title="View <%= rowCrossHire("CONTNO") %>"><%= rowCrossHire("CONTNO") %> <%= sonNo %> <%= rowCrossHire("ACCTNAME") %> <%= rowCrossHire("ITEMNO") %> <%= itemDescription %> <%= … +0 I am trying to make a calculator to calculate your age in dog years, the following is the code I have so far, minus the html portion of it = 100 && \$_POST['your_age'] <= 199) { \$result = "An Old Dog"; } else if (\$_POST['your_age'] >= 200 && \$_POST['your_age'] <= 299) { \$result = "Wicked Old Dog"; } else if (\$_POST['your_age'] >= 300) { \$result = "Ancient Dog"; } ?> Calculation Result

The result of the … +0 Hi, In an application im making, I need to square a decimal value in a text field to then use in other calculations later, but when the compiler squares the value it ignores the decimal points, treating 1.85^2 as 185^2 and returning 34225 rather than 3.4225. What am I doing wrong? Here is the code: Private Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click Dim heightSquared, height As Double height = txtHeight.Text heightSquared = (height * height) lblBMI.Text = heightSquared End Sub This is the test code im using, and have tried using height^2 and got the same result. +0 hi all, how to do multiplication matrix with iteration and stop iteration if value >= 5? \$data = array( array(1,-0.52836), array(-0.52836,1,), ); for (\$i=0;\$i"; print_r(\$R2); echo ""; result: 1.279164732 -1.056721269 -1.056721269 1.318545629 how to do nested loop from process above until the result: iteration 1: \$data * \$data = 1.279164732 -1.056721269 -1.056721269 1.318545629 iteration 2: \$R2 * \$R2 = 2.752922251 -2.703440873 -2.703440873 2.752921564 iteration 3: result(\$R2 * \$R2) * \$R2= 6.378224523 -6.367216988 -6.367216988 6.378222905 loop break because value array >= 5 please help me :3 +0 Hello, As may be apparent from my previous posts, I am in a "If its worth doing, its worth overdoing" sort of competition with a friend of mine. Our goal is arbitrary precision integer arithmetic. I think I am close to getting the data storage working, but now I want to look at the complexity of my multiplication step. I already have it so that if the number is #include #include using namespace std; #define WIDTH 3 #define HEIGHT 3 void main(){ int a[HEIGHT][WIDTH]; int b[HEIGHT][WIDTH]; int n; for (int i = 0; i <= HEIGHT - 1; i++) { for (int j = 0; j <= WIDTH - 1; j++) { //cout << "\n Intput a[" << i << "][" << j << "]: "; //cin >> a[i][j]; a[i][j]= rand()%100 + 1; } cout << "\n"; } … +0 Hey guys, I'm stuck. What I want to do for a school project is demonstrate how bacteria divides and multiplies on an exponential scale. What I want to do is have a TreeView, and when the user clicks the 'Populate' button, a tree will be generated. I want the tree to start with one node, which will split into two, then each one of those nodes will split into two, as will each of the next, so on so forth - like you can see in the fibonacci tree diagram [here](http://www.cse.unsw.edu.au/~billw/dictionaries/pix/fibonacci_tree.png). How would I go about doing this? +0 I am creating a method to multiply 2 polynomial expressions together such that: `3x^5 * 2x^3 = 6x^8` -> Where the coefficients are multiplied and the exponents are added together. My test case for this would look something like the following @Test public void times01() throws TError { assertEquals(Term.Zero, Term.Zero.times(Term.Zero)); } I should also add that `Term.Zero = (0,0)` and `Term.Unit = (1,0)` So anything multiplied by `Term.Zero` is `Term.Zero` and anything multiplied by `Term.Unit` returns itself as `Term.Unit` effectively is 1. public Term times(Term that) throws CoefficientOverflow, ExponentOverflow, NegativeExponent { return null; } This is the `times` method. I'm … +0 matrix multiplication program -1 I need to design and implement an application that produces a multiplication table, showing the results of import java.util.*; import java.text.*; public class MultTab7 { //---------------------------------------------------------------------------------------------- // Creates a multiplication table. //---------------------------------------------------------------------------------------------- public static void main (String[] args) { int MAX = 12; for (int r=1; r<=MAX; r++) { for (int c=1; c<= MAX; c++) { cout< 1 2 3 4 5 6 7 8 > 1 1 2 3 4 5 6 7 8 > 2 2 4 6 8 10 12 14 16 > 3 3 6 9 12 15 18 21 24 > 4 4 8 12 16 … +0 /***** The prompt i have is : use a class with 3 member functions named InputMatrix, Calculate, and OutMatrix. The program will prompt the user to (e)enter the matrix data, (c) to calculate the matrix multiplication, (d) to display the input and output matrices, and (q) to quit. no exit() or abort() commands are to be used. no global variables allowed. I have created the Menu for users to enter either e, c, d or q...I have also created the correct functions for input, output and calculation. i am having trouble with how to put all the functions in the … +0 hi Am trying to write a C-code that multiply two matrices but i want the elemnets of every matrix is random number using time function main() { srand ( time(NULL) ); int m1[10][10]; m1[10][10] = rand() % 10; scanf("%d%d",&r1,&c1); scanf("%d%d",&r2,&c2); if(r2==c1) { . . . . } this is the first matrix only when i output tihs matrix printf("First Matrix is :n"); for(i=0;i Calc Price