Unanswered Questions

This page lists MaplePrimes questions that have not yet received an answer

the question is as follow:

1)receive two integers p and q

2)declare two local p1 and q1 and give them intial values and q

3)check if p o q are equal or less to zero print works only with positive integers

4)while p1 not equal to q1 then p1-a1 otherwise q1-p1

5)whenever p1=q1 we have the GCD

note:must use procedure and call it for different values of p and q after the procedure is written

-by following the instruction above this is what i got

GCD:=proc(p,q)

local p1,q1;

p1:=p;

q1:=q;

if p<=0 OR Q<=0 then 'works only with positive integers'
else while p1<>q1 do if q1<p1 then p1-q1 else q1-p1

end if;

end do;

end if;

end proc;

but when I call two integers eg:p=2, q=6 -> GCD(2,6) maple just freeze...evaluating....forever. is it because i got the procedure wrong etc? it would be helpful if anyone can help me with this. thanks

 

 

A square has 36 sub-squares in it. How to Number each sub squares from 1 to 36, to make the sum of vertical, the sum of horizontal, and the sum of cross line are the same .Describe in general if possible.

Bonjour

 

Comment se calcul le résidue d'une fonction f(x,y) ?

Si par exemple f(x,y)=1/x+1/y+5/(x*y), alors le residue de f en (0,0) est défini comme étant (1/2*Pi)^2*int(f(x,y)) avec intégrale est sur une sphère qui contient l'origine.

Est ce qu'il est égal au coefficient 5 de 1/(x*y) dans le developpement de laurent en deux variables ??

 

Merci d'avance,

Gérard.

with(LinearAlgebra):

n := 31;

h := 0;

c1 := Array(1 .. 100);

c2 := Array(1 .. 100);

c3 := Array(1 .. 100);

for tt from 0 to n-4 do

c1[tt+1] := ...

c2[tt+1] := ...

c3[tt+1] := ...

od;

plot3d([c1[x],c2[x],c3[x]], x=1..27, y=1..27);

Does N variables caylay table have N permutation group so that can generate N functions?

for exmaple 3 variables cayley table have 3 permutation group, for 1, it has a permutation group , for 2 has a permutation group etc.

then does it mean that it has 3 functions, do it need to composite 3 functions in order to get a function belong to this cayley table?

1 1 1

1 2 2

1 2 3

Hello, everyone!

Last day I’ve discovered a strange behavior of the “optimization” tool:

Mostly it copes with the task – but there are cases (the data are the same) when the tool doesn’t return the opt. value: instead it returns the parameter name.
BUT if some of the previous calculations are re-evaluated (and the same input values are received) the “optimization” tools works quite well.

The question is: how to tackle the problem?

P.S. The way to force re-evaluation of previous functions in the body of this procedure (if the optimization failed) doesn’t help: it returns the optimizing parameter name once more.

Windows 8 (64-bit)
Maple 17.00

Hi, I am trying to plot these two curves:

I tried:


with(plots);  A := Array(1..2)  A[1] :=plot (0.199563349672261+0.0178636902277546 x^1.14406289706794-0.0182070811144750 x^(1.13867380551454),x=50..2050,  color=red);  A[2]  := plot(0.298910542599302+0.0117459591500434 x^1.00390277106937-0.0137065176395662 x^0.970667551759677, x = 50..2050, color = blue);  display (A);

and I got:

Error, (in plot) unexpected option: .298910542599302+0.117459591500434e-1*x^1.00390277106937-0.137065176395662e-1*x^.970667551759677

so I tried

so I am not sure how I would graph these two functions...

 is there two cayley tables when generate every modular lattice such as (x v y) ^ y = y

 how to generate these two cayley table for join and meet with axiom  (x v y) ^ y = y

Ive been given a task to write a fuction that will print true/false to if a given line will intersect a triangle given the co-ordinates of the vertices. 
I have a general idea on what needs to be done mathmaticly, but i have poor maple skills and the syntax is killing me.
I would appreciate some help in this regard.

 

Thanks.

Ok so my problem is that I need to write a function which produces the three inequalities defining a triangle given the 3 points that form its vertices, then with the 4th point supplied to the function I need the function to print false if the 4th point satisfies less than 2 of these inequalities and true if it satisfies more than 2 of these inequalities. Can anybody help me with this? On a previous post I obtained part of the function that produces the triangle, but the 2 inequalities part was not solved.

Thanks for your time

 

How to show the code in file with extension .lib and edit it?

Hello

Am trying to convert a vector projection to matrix type output.

Attached is a sample worksheet.

 

Transformation_matri.mw 

 

  1. 1.    The bending moment M, in a simply supported beam is represented by the formula: (5marks)

 

 M = w x/2 (l-x)

 

Where: w = uniformly distributed load in KN per m

            x = distance from the left hand end of the beam in m 

            l = span of the beam in m 

                 

                 

If  = 4KN per m and  = 5m, calculate the value of  where  = 12KNm

 

Any thoughts on this guys? 

I know this is cheeky but i was wondering if there was anyone out there that would be willing to pretty much do this question for me? i have been at this all night and still not the slightest clue. Any help would be much apprefiated. 

 

  1. 1.    Below are 4 questions that require solving problems by formulating simultaneous equations. Solve each question and explain the method you used. What other methods could be used other than those you have used to solve here. (total 30 marks)

(a)  A penalty clause states that a groundwork’s sub-contractor will forfeit a certain sum of money for each day that they are late in completing a contract (i.e. the sub-contractor gets paid the value of the original contract less any forfeit). If they are 6 days late they receive £5000 if they are 14 days late they receive £3000. (8marks)

  1. a.    Find the amount of the daily forfeit
  2. b.    Determine the value of the original contract.

(b)  The total cost of purchasing 2 excavators, A and B is £30,000. The 2 tonne excavator costs £2,000 more than the 1.5 tonne excavator. Find the individual cost for each excavator. (7marks)

(c)  You are estimating costs for a heat recovery installation. You know that 100m of 100mm dia ducting and 8 bends cost £100 and 150m of 100mm ducting and 10 bends cost £147.50. Find the cost for 1m of ducting and 1 bend. (8marks)

(d)  You are a Site Manager who is organising a lift utilising a tower crane you have on site. You know that the Force (F) in Newtons required to lift a load (W) in Newtons is represented by the equation F = aW + b. You know that a force of 100N lifts a load of 180N and a force of 150N lifts a load of 280N. Find the values of a and b and the force required to lift a load of 500N. (7marks)

I have my cod and I have written in C++. I get the result lower than which I expected between radius of gyration and scaled temperature to find Theta temperature!

 

thanks  for your help

 

Lano

First 253 254 255 256 257 258 259 Last Page 255 of 334