## How to solve a set equations in a matrix form?...

Asked by:

Hello there,

When I tried to solve a set of equations, represented in a matrix form, Maple complained. After the matrix form was decomposed to row by row and solve was attempted, Maple became happy. I wonder if I can solve the set of equations in a matrix form.

Goal: solve this set of equations in terms of Xl12/Xl23/Xl13

X1 = 0.5 * ( Xl12 + Xl13 - Xl23 )
X2 = 0.5 * ( Xl12 + Xl23 - Xl13 )
X3 = 0.5 * ( Xl13 + Xl23 - Xl12 )

 > X:=;
 (1)
 > Xeq:= X = <1/2*(xl12 + xl13-xl23), 1/2*(xl12 + xl23-xl13), 1/2*(xl13 + xl23-xl12)>;
 (2)
 > solve(Xeq, {xl12, xl13, xl23});

Did not work.

 > solve({X1=1/2*(xl12 + xl13-xl23), X2=1/2*(xl12 + xl23-xl13), X3=1/2*(xl13 + xl23-xl12)}, {xl12, xl13, xl23});
 (3)

Did work.

Download Q_20200609.mw

## How do I shade this?...

Asked by:

I want to shade the function y=x*ln(x) on the domain of (0,1].

## conflict between with() and uses...

Asked by:

It would seem that if a package is loaded at the "top-level" via with() and the worksheet also has a procedure definition which contains a 'uses' statement for the same package (OK, admittedly a bit redundant), the commands from the relevant package actually "go missing".

See the output from test4() in the attached.

I can't believe that this is deliberate, because when trying to 'compartmentalise' code, then a 'uses' statement in a procedure seems like a good idea. To have this fail because the "top-level" worksheet contains a with() statement loading the same package seems perverse.

Please don't post workarounds - I already know several ways to do achieve it. I'm trying to find out if this behaviour is "deliberate" or a "bug". If the latter, it has been around for a long time because I have checked all the way back to Maple 18: every version exhibits the same behaviour

 > restart:
 > kernelopts(version);   test1:= proc(M::Matrix)                uses LinearAlgebra:                return MatrixInverse(M):           end proc:   test2:= proc(M::Matrix)                return LinearAlgebra:-MatrixInverse(M):           end proc:   with(LinearAlgebra):   test3:= proc(M::Matrix)                return MatrixInverse(M):           end proc:   test4:= proc(M::Matrix)                uses LinearAlgebra:                return MatrixInverse(M):           end proc:   test1( Matrix( [[1,2],[3,4]]));   test2( Matrix( [[1,2],[3,4]]));   test3( Matrix( [[1,2],[3,4]]));   test4( Matrix( [[1,2],[3,4]]));
 (1)
 >

Download usewith.mw

## How To make Phaseportrait 3D...

Asked by:

Please everybody, help me to make phaseportrait 3D

## Extending the Graph...

Asked by:

f:= (ln(4x-4)/4)-(ln(4x+4)/4)+(arctan(x)/2)

When I do plots([f(x),f(x)-2,f(x)+2]), the graphs don't extend infinitely like I want. They stop just themselves. How get I the plots to extended more? I attached a picture.

## hello guys, i really wondered if there any way to ...

Asked by:

it really confused, with generating different sample some times the command fsolve is working and some times don't . is there any other way to solve this system of equations. because I am going to generate 1000 samples and for each sample, I supposed to solve this system.

 >

 >
 >
 >
 >
 >
 >
 (1)
 >
 (2)
 >
 >
 (3)
 >

Download ask_maple.mw

Asked by:

## apparently non-existential procedure called by ran...

Asked by:

I just need someone to explain to me why the following occurs:

 >
 >
 rand := proc(r::{posint, numeric .. numeric}, \$)    1   if nargs = 0 then    2     RandomTools:-MersenneTwister:-GenerateInteger()        else    3     try    4       if type(r,('numeric') .. ('numeric')) then    5         if rhs(r) < lhs(r) then    6           error "invalid range, end points are out of order"              elif not type(r,('integer') .. ('integer')) then    7           return () -> RandomTools:-Generate(float(('range') = r,('method') = ('uniform')))              end if            end if;    8       return RandomTools:-MersenneTwister:-NewGenerator(('range') = r)          catch :    9       error          end try        end if end proc
 >
 >
 RandomTools:-MersenneTwister:-GenerateInteger := proc({range::{integer, integer .. integer} := 1000000000000}, \$) local bits, divisor, offset;    1   if nargs = 0 then    2     return MTKernelInterface(4)        end if;    3   if type(range,'integer') then    4     divisor := range;    5     offset := 0        else    6     if rhs(range) < lhs(range) then    7       error "illegal range, end points out of order"          end if;    8     if lhs(range) = rhs(range) then    9       return lhs(range)          end if;   10     offset := lhs(range);   11     divisor := rhs(range)-offset+1        end if;   12   if divisor = 0 then   13     return offset        end if;   14   bits := MTKernelInterface(5,divisor);   15   MTKernelInterface(6,divisor,bits)+offset end proc
 >
 >
 >
 >

Download rand_showstat.mw

## Saddle point in maple...

Asked by:

Does maple provide any method for finding the saddle point of a function? Thank you

## How do I make nested for loop in Maple? ...

Asked by:

I am trying to write maple program for Gauss Siedel method. I needed two for loop. One for running the iterative method and the other for checking where (the number of iteration required) the results converge.

Please, I need help.

Thanks.

## int() not evaluating (Maple 2020)...

Asked by:

Hi guys! I'm having trouble using int with a few expressions, for example:

is returning

however simpler expressions such as

int(x^2 + x, x)

or int(x/2 + 1/2, x)

are working correctly and returning

respectively. I'm using Maple 2020 in worksheet mode using Math 2D Input/Output.

Here's my screen, any help would be much appreciated thanks!

## Solving a Double Inequality?...

Asked by:

Hi,

I'm trying to solve for Double Inequality. (1.1) and (1.3) combined.

Thanks in Advance

Example: Solving a Double Inequality

 (1.1)

 (1.2)

 (1.3)

 (1.4)

 (1.5)

 (1.6)

Download Double_Inequality.mw

## Easier way to solving an Equation Involving an Abs...

Asked by:

Hi,

I was wondering is there an easier way for me to solve an Equation Involving an Absolute Value?

Example: Solving an Equation Involving an Absolute Value

 (1.1)

 (1.2)

 (1.3)

 (1.4)

 (1.5)

Download Absolute_Value.mw

## Maple doesn' work at document mode...

Asked by:

Mapple doesn' work at document mode.How can i solve the problem.(My Os is Win 10 )

## Realization of BVP[midrich]...

Asked by:

Hi!
I am trying to solve ODE with bvp[midrich], and I need to prove the validity of this method.
Where can i read about realization of bvp[midrich]. What scheme does it use? Аre there any articles on this subject?

 First 248 249 250 251 252 253 254 Last Page 250 of 2132
﻿