## How I can determine a function ...

How I can determine a function that satisfy these boundary and initial conditions.

Thank you

S2

Maple Worksheet - Error

Failed to load the worksheet //convert/S2

## Game of Thrones and Graph Theory

by: Maple 2019

While googling around for Season 8 spoilers, I found data sets that can be used to create a character interaction network for the books in the A Song of Ice and Fire series, and the TV show they inspired, Game of Thrones.

The data sets are the work of Dr Andrew Beveridge, an associate professor at Macalaster College (check out his Network of Thrones blog).

You can create an undirected, weighted graph using this data and Maple's GraphTheory package.

Then, you can ask yourself really pressing questions like

• Who is the most influential person in Westeros? How has their influence changed over each season (or indeed, book)?
• How are Eddard Stark and Randyll Tarly connected?
• What do eigenvectors have to do with the battle for the Iron Throne, anyway?

These two applications (one for the TV show, and another for the novels) have the answers, and more.

The graphs for the books tend to be more interesting than those for the TV show, simply because of the far broader range of characters and the intricacy of the interweaving plot lines.

Let’s look at some of the results.

This a small section of the character interaction network for the first book in the A Song of Ice and Fire series (this is the entire visualization - it's big, simply because of the shear number of characters)

The graph was generated by GraphTheory:-DrawGraph (with method = spring, which models the graph as a system of protons repelling each other, connected by springs).

The highlighted vertices are the most influential characters, as determined by their Eigenvector centrality (more on this later).

The importance of a vertex can be described by its centrality, of which there are several variants.

Eigenvector centrality, for example, is the dominant eigenvector of the adjacency matrix, and uses the number and importance of neighboring vertices to quantify influence.

This plot shows the 15 most influential characters in Season 7 of the TV show Game of Thrones. Jon Snow is the clear leader.

Here’s how the Eigenvector centrality of several characters change over the books in the A Song of Ice and Fire series.

A clique is a group of vertices that are all connected to every other vertex in the group. Here’s the largest clique in Season 7 of the TV show.

Game of Thrones has certainly motivated me to learn more about graph theory (yes, seriously, it has). It's such a wide, open field with many interesting real-world applications.

Enjoy tinkering!

## How to change zoom factor in worksheet to a value ...

I googled, read help and not able to find how to do this.

I want to change the zoom in worksheet to any value I want, and not just 100%,150%,75%, etc.... which are the values that are listed in View->Zoom factor.

Is there a place one can type in the zoom value they want? Say 110% or any other number?

windows 10.

Thank you

## How to parse Maple string that contains more than ...

I read a string from file which contains a sequence of Maple commands, all in one string. The commands are separated by ";" in the string. I need to then evaluate all the commands in the string as if I typed them one after the other.

Here is an example

```data:="x:='x';y:='y';sol:=dsolve(diff(y(x),x)=1,y(x));"; #read from database
parse(data);```

Warning, extra characters at end of parsed string
x := 'x'

I want the result to parse to be as if I typed

```x:='x';
y:='y';
sol:=dsolve(diff(y(x),x)=1,y(x));```

I looked at help in parse page, but I do not see what I need to do. It says that

If the option 'statement' is specified, the string must consist of exactly one Maple statement (which includes expressions). The statement is parsed and evaluated, and the result is returned.

But I am not using the statment option. I also tried using this option, no change, same problem.

Is there a way to prase such a string?

Thanks

## column name missing in FetchRow for Database[SQLit...

Is this documenation wrong?

https://www.maplesoft.com/support/help/maple/view.aspx?path=Database%2fSQLite%2fFetchRow

It says that calling sequence is

FetchRow( statement, column, valuetype  )

But below it only shows

 statement - prepared statement obtained using Prepare command valuetype - type of the output data, default is "auto"

With no column anywhere.  And none of examples show column in them.

And when I tried it by adding a column name that I know exist in my sqlite3 database, Maple gave an error that no such parameter allowed.

Does FetchRow support column name or is the above just a documenation error?

Maple 2019

## Odditity in Maple 2019...

I have noticed a few times now with Maple 2019. It looses kernel connection when it is sitting there idly. This time I observed it. Had saved a document after an intensive calculation. The memory used was about 30Gig. shortly after saving the cpu fan was running hard. I checked task manager and cpu was cycling to 100%, it was mserever. Then the memory usage droped to about 6gig and message as shown. During this time Maple screen down in the LH corner displayed "Ready", so it didn't think it was doing anything.

## Can seq or Seq be applied to fill our a 2 d Array?...

My code below works but I an looking to speed it up to apply to large arrays. I have large integers and I want to store the exponent and first and last few digits.

```nelems := 10;  ~ takes about 50mins when n=100,000,000
n := 374894756873546859847556;
op(n);
A := Array(1 .. 4, 1 .. nelems);
length(n);
st := time();
for i to nelems do
A[1, i] := i^10*n;
A[2, i] := length(A[1, i]) - 1;
b := convert(A[1, i], string);
A[3, i] := parse(b[1 .. 3]);
A[4, i] := parse(b[-3 .. -1]);
end do;
time() - st;
A;
A[1, -2];
A[2, -2];
A[3, -2];
A[4, -2];
```

## simplify equation ...

Hello,

How I can take variation from left-hand side of  5, and reach to right-hand side of  5. After by using integral by part obtained  7?

Thank you

## Multiple plots in maple...

Hello,

I´a currently making a school assigment, but i can´t get maple plots to combine the graphs i plot, when i plot multiple plots. (see picture) (the code is in the bottom of the question)

as you can see the green and yellow grafh won´t combine. I have tried google but couldn´t find any anserws that worked.
Hope someone can help me!
Thanks!

with(plots); with(Plot);
a := plot(4, x = 0 .. .25, color = red, view = [0 .. .25, 0 .. 5]);
b := plot(1/x, x = .25 .. 1.101, color = blue, view = [.25 .. 1.101, 0 .. 5]);
c := plot(-(1/12)*x+1, x = 1.01 .. 6, color = yellow, view = [1.101 .. 6, 0 .. 5]);
d := plot(.5+sqrt(x-5), x = 6 .. 20, color = green, view = [6 .. 20, 0 .. 5]);
e := plot(1.15*sqrt(x-7), x = 7 .. 20, color = pink, view = [7 .. 20, 0 .. 5]);
display(a, b, c, d, e);

## pdsolve and laplace PDE on semi-infinite domain...

Hello Maple experts;

I am not able to understand why Maple 2019 can solve Laplace PDE in 2D Catersian on semi-infinite domain, when the infinity is along the Y direction, but not along the X direction, since the solution method is exactly the same.

Here is the code

```restart;

#right one, Maple can not solve
pde := diff(u(x, y), x\$2)+diff(u(x, y), y\$2) = 0:
bc_left_edge := u(0, y) = 0:
bc_bottom_edge:= u(x, 0) = 0:
bc_top_edge:= u(x, 1) = A:
bc:=bc_left_edge ,bc_top_edge,bc_bottom_edge:
sol:=pdsolve([pde, bc],HINT = boundedseries(x = infinity)) assuming x>0,y>0;

#left one, Maple can solve
pde := diff(u(x, y), x\$2)+diff(u(x, y), y\$2) = 0:
bc_left_edge := u(0, y) = 0:
bc_bottom_edge:= u(x, 0) = 0:
bc_right_edge:= u(1, y) = A:
bc:=bc_left_edge ,bc_right_edge,bc_bottom_edge:
sol:=pdsolve([pde, bc],HINT = boundedseries(y = infinity)) assuming x>0,y>0;

```

Here is screen shot.