Items tagged with 2dmath

Hey, I recently switched to Maple 2016, but now whenever I write equations in the text field it calculates it like if it was a math problem it had to solve, but I just want it to be text, nothing else.

Do you know of any way to turn this off? As in Maple 2015 I could write equations in the text field, and when I ran the worksheet through it wouldn't try to calculate text fields, but 2016 calculates the text fields and shows the solution as a blue text... So annoying.

Previous year I was using Maple 2015 and I had a procedure in which I had used

A := Array((1 .. 3)$3);

And similar use of $. This year I'm using Maple 2016. Now I came back to my old procedure but Maple doesn't compile the procedure anymore and instead shows

Error, `$` unexpected
What is the problem? Is something changed in new version of Maple?

Why I use Array and $ is my old question here http://www.mapleprimes.com/questions/210628-Undefined-For-Loop-Bound which was fine before.

Hi @ all,

I was wondering if there is a way to display every character that i type in maple math input without any kind of automatic text editing (neither adding nor removing characters).

I find it very cumbersome to read and edit the modified input (afaik just from looking at a simple piece of printed (black and white on pamper) code it is impossible to destinguish atomic variables and indexed variables due to automatic text edit of the input to lower script in both cases).

 

Example 1: "True" Low Script (Not indexed variable!)
> a__1 :=3:

When I type this in 2-D Math Input (or Maple Input) the cursor jumps to lower script (atomic variable) after the second underscore which is not what i want to happen. After evaluating the expression it is very neat to see the "1" as lower sript but not during typing. Any mode or something to achieve this?

2. Example: Use a loop for dynamic variable creation (not because it is smart to do so but to illustrate my problem with maple input and automated text edit)

> for i from 1 to 4 do:
> x__||i:=1:
> end do:

I can not type this directly in any kind of maple input I have found. The concatenate symbol will be interpreted as subscript without escaping the automatically entered "atomic variable" mode which causes an error. After I use the arrow key to type "||i" outside "atomic variable mode" the loop variable i is not used as index anymore but instead appended to x as a number. But what i want is a dynamic variable creation with "true" numbered subscripts. I could use a longer version with cat() but this sucks (or I simply do not know how to type it properly).

I do not want to use or see atomic variables during input (or any kind of automatic text editing during input for that matter) !

So what I do Instead is I use a texteditor to type away, paste the code to maple and execute it. Works like a charm and my fingers do not have to leave their designated spots on the keyboard and i can type way faster. Furthermore I can always copy the code back to notepad++ and use regex to make a lot of simultaneous replacements at once whereas this is quite difficult with code that i typed in maple.

 

So how do I turn off automated text edit of the input? Or should I use anything else then a worksheet?

Cheers
Zorg

i would like to plot a cube with the color given by a 3 variables functions (a way to plot in R^4)

in this way the cube is the domain of the functions, its color is the value of the function, i would like to put in evidence the max min of such function

but the command that i tried to use does not work:

plots[display](plotools([cuboid]([0,0,0],[1,1,1]),trasparency=.7,colorscheme["xyzcoloring",proc(x,y,z) option operator , arrow; x^2 + y^2 - z^2 end(proc)])

thanks for your help, anna rita

Greetings,

I have been attempting to plot a couple of functions and I keep getting the same error.  I will copying and paste what I have entered and the error messages

with(plots);

with(VectorCalculus);

sphereplot*(rho = theta, theta = 0 .. 4*Pi, phi = 0 .. (1/2)*Pi);

Error, (in simpl/reloprod) invalid terms in product: (rho = theta)*(theta = 0 .. 4*Pi)

 

with(plots);
with(VectorCalculus);
fieldplot*(<-x, y, cos z>, x = 0 .. 5, y = 0 .. 5, z = 0 .. 2*Pi);
Error, (in simpl/reloprod) invalid terms in product: (x = 0 .. 5)*(y = 0 .. 5)

 

Any assistance would be most appreciated.  Thanks in advance.

 

hi.

i have problem with this eq.

i need your help.

I wondering if it is able to create a new symbol in maple, like it is possible to create a custom snippet in the pallets. Speceficly I am asking how to create a new symbol/charachter for 2D math. So if anyone knows please tell me :)

Hey 

 

I just went from maple 18 to maple 2016. I use maple as a writing program aswell for notes and school.

 

I realized that maple 2016 does output lines when writing math in a textbox. This is kind of annoying since notes in chemistry is not allways a true mathematical expression. Therefore maple complains. Is there anyway to change this? 

Andreas

I'm sorry for asking too many similar technical questions, but I just can't help this.

I'm solving a system of differential equations with dsolve and getting this type of error:

Error, (in f) unable to store 'HFloat(0.10664489706950975)+HFloat(1.1891638418458722e-5)*sin^2-HFloat(1.6095871822513048e-6)*sin' when datatype=float[8]

I checked the dsolve syntax, checked that all the constants are defined, checked that the number of equations matches the number of unknown functions (and there is no misprints of them in the code). In brief, I checked all the stuff that I usually have mistakes in, and yet the error stands. 

Here's the file: 1.mw

Given that I use Maple as a student I've had to update to the newest version to keep using Maple.

However I find I have a lot of problems with the new version.

 

Normally when I write an assignement or work on the given problems I use worksheet mode because it is the best mode to spot any mistakes, and I've grown accostumed to it.

 

My problem however is when I have to use text.

 

Normally I've hit CTRL+T to get Maple to recognize that I write text, whereupon I write the given assignment, and press CTRL+J for when I want to go on and write some math. However we do have a little issue about the symbols.

 

Since I am an engineering student we use a lot of greek letters, and in this case I bring up sigma. In the "old" Maple I pressed F5 to get into math, write the symbol I wanted, pressed F5 again to get back to text and keep writing. In Maple 2016 however I do the same and then at the end of the text paragraph maple spits out lines of blue text with all of the "math" that I have written.


So my question is thus: Can I stop Maple from giving me the blue text, or perhaps is there another way to type symbols without having to go into math?

how can active that math mode not run in maple 2016

 

ANALYSIS AND DESIGN OF MACHINE FOUNDATION

 


restart

Loading Optimization

 

Loading LinearAlgebra  

 

Loading plots  

with(ScientificConstants):

Loading DynamicSystems  

with(Units:-Standard)

with(Units:-Natural)

with(StringTools)

FormatTime("%m-%d-%Y, %H:%M")

FormatTime("%m-%d-%Y, %H:%M")

(1)

NULL

Introduction

 

This document deals with vibration analysis and design of machine foundations subjected to dynamic load.

NULL

NULL

NULL

NULL

GetConstant(g);

standard_acceleration_of_gravity, symbol = g, value = 9.80665, uncertainty = 0, units = m/s^2

(2)

g__SI := evalf(Constant(g, system = SI, units))

9.80665*Units:-Unit(('m')/('s')^2)

(3)

NULL

Richart and Lysmer's Model

 

Richart et al. (1970) idealised the foundation as a lumped mass supported on soil which is idealised as frequency independent springs which he described in term of soil parameter

dynamic shear modulus or shear wave velocity of the soil for circular footing when footings having equivalent circular radius. The Tables below shows the different values of spring and damping vlaues as per Richart and Lysmer.

NULL

In which, G = dynamic shar modulus of he soil and is given G = `&rho;__s`*V__s^2 ; ν = Piosson's ratio of the soil; ρs = mass density of the soil; Vs = shear wave velocity of the soil obtained

from soil testing; g = acceleration due to gravity; m = mass of the machine and foundation; J = mass moment of inertia of the machine and foundation about the appropriate axes; K = equivalent spring stiffness of the soil; C = damping value of the soil; B = interia factor contributing to the damping factor; D = damping ratio of the soil; r = equivalent radius of a circular foundation; L = length of foundation, and B = width of the foundation.

NULL

NULL

NULL

Sketch

 

NULL

NULL

NULL

NULL

nu := .25

Table : Values of soil springs as per Richart and Lysmer (1970) model

 

NULL

NULL

SI No.

Direction

Spring value

Equivalent radius

Remarks

1

Vertical

K__z = 4*G*r__z/(1-nu)"(->)"

r__z = sqrt(L*B/Pi)"(->)"

This is in vertical Z direction

2

Horizontal

K__x = (32*(1-nu))*G*r__x/(7-8*nu)
"(->)"

r__x = sqrt(L*B/Pi)"(->)"

This induce sliding in horizontal X

2.1

Horizontal

K__y = (32*(1-nu))*G*r__y/(7-8*nu)
"(->)"

r__y = sqrt(L*B/Pi)"(->)"

This induce sliding in horizontal Y

3

Rocking

`K__&phi;x` = 8*G*`r__&phi;x`^3/(3*(1-nu))"(->)"

`r__&phi;x` = (L*B^3/(3*Pi))^(1/4)"(->)"

This produces roxking about Y axis

3.1

Rocking

`K__&phi;y` = 8*G*`r__&phi;y`^3/(3*(1-nu))"(->)"

`r__&phi;y` = (L^3*B/(3*Pi))^(1/4)"(->)"

This produces roxking about X axis

4

Twisting

`K__&psi;` = 16*G*`r__&psi;`^3*(1/3)"(->)"

`r__&psi;` = ((B^3*L+B*L^3)/(6*Pi))^(1/4)
"(->)"

This produces twisting about vertical Z axis

 

NULL

NULL

NULL

NULL

NULL

Table : Values of soil damping as per Richart and Lysmer (1970) model

 

NULL

SI No.

Direction

Mass ratio (B)

Damping ratio and Damping values

Remarks

1

Vertical

B__z = .25*m__U*(1-nu)*g__SI/(`&rho;__s`*r__z^3)
"(->)"

`&zeta;__z` = .425/sqrt(B__z)"(->)"C__z = 2*`&zeta;__z`*sqrt(K__z*m__U)"(->)"

This damping value is in vertical Z direction

2

Horizontal

B__x = (7-8*nu)*m__U*g__SI/((32*(1-nu))*`&rho;__s`*r__x^3)
"(->)"

`&zeta;__x` = .288/sqrt(B__x)"(->)"

C__x = 2*`&zeta;__x`*sqrt(K__x*m__U)"(->)"

This damping value is in lateral X direction

2.1

Horizontal

B__y = (7-8*nu)*m__U*g__SI/((32*(1-nu))*`&rho;__s`*r__y^3)
"(->)"

`&zeta;__y` = .288/sqrt(B__y)"(->)"

`&zeta;__y` = .288/((2.145204688-2.451662500*nu)*m__U*Units:-Unit(('m')/('s')^2)/((1-nu)*`&rho;__s`*(L*B/Pi)^(3/2)))^(1/2)

(5.1)

NULLError, invalid left hand side in assignmentError, invalid left hand side in assignment

`&zeta;__&psi;` = .5/(1+117.6798000*`J__&psi;`*Units:-Unit(('m')/('s')^2)*6^(1/4)/(`&rho;__s`*((B^3*L+B*L^3)/Pi)^(5/4)))

(5.2)

C__y = 2*`&zeta;__y`*sqrt(K__y*m__U)"(->)"

This damping value is in lateral Y direction

3

Rocking

`B__&phi;x` = (.375*(1-nu))*`J__&phi;x`*g__SI/(`&rho;__s`*`r__&phi;x`^5)
"(->)"

`&zeta;__&phi;x` = .15/((1+`B__&phi;x`)*sqrt(`B__&phi;x`))
"(->)"

`&zeta;__&phi;x` = .15/((1+11.03248125*(1-nu)*`J__&phi;x`*Units:-Unit(('m')/('s')^2)*3^(1/4)/(`&rho;__s`*(L*B^3/Pi)^(5/4)))*((11.03248125-11.03248125*nu)*`J__&phi;x`*Units:-Unit(('m')/('s')^2)*3^(1/4)/(`&rho;__s`*(L*B^3/Pi)^(5/4)))^(1/2))

(5.3)

Error, invalid left hand side in assignmentError, invalid left hand side in assignmentNULLError, invalid left hand side in assignment

.15/((1+11.03248125*(1-nu)*`J__&phi;x`*Units:-Unit(('m')/('s')^2)*3^(1/4)/(`&rho;__s`*(L*B^3/Pi)^(5/4)))*((11.03248125-11.03248125*nu)*`J__&phi;x`*Units:-Unit(('m')/('s')^2)*3^(1/4)/(`&rho;__s`*(L*B^3/Pi)^(5/4)))^(1/2)) = .15/((1+11.03248125*(1-nu)*`J__&phi;x`*Units:-Unit(('m')/('s')^2)*3^(1/4)/(`&rho;__s`*(L*B^3/Pi)^(5/4)))*((11.03248125-11.03248125*nu)*`J__&phi;x`*Units:-Unit(('m')/('s')^2)*3^(1/4)/(`&rho;__s`*(L*B^3/Pi)^(5/4)))^(1/2))

(5.4)

`C__&phi;x` = 2*`&zeta;__&phi;x`*sqrt(`K__&phi;x`*`J__&phi;x`)"(->)"

NULL

This damping value is for rocking about Y direction

3.1

Rocking

`B__&phi;y` = (.375*(1-nu))*`J__&phi;y`*g__SI/(`&rho;__s`*`r__&phi;y`^5)
"(->)"

NULL

`&zeta;__&phi;y` = .15/((1+`B__&phi;y`)*sqrt(`B__&phi;y`))
"(->)"

.15/((1+`B__&phi;y`)*`B__&phi;y`^(1/2)) = .15/((1+`B__&phi;y`)*`B__&phi;y`^(1/2))

(5.5)

`C__&phi;y` = 2*`&zeta;__&phi;y`*sqrt(`K__&phi;y`*`J__&phi;y`)"(->)"

NULL

This damping value is for rocking about X direction

4

Twisting

`B__&psi;` = `J__&psi;`*g__SI/(`&rho;__s`*`r__&psi;`^5)"(->)"

`&zeta;__&psi;` = .5/(1+2*`B__&psi;`)"(->)"NULLError, invalid left hand side in assignmentError, invalid left hand side in assignmentNULLError, invalid left hand side in assignmentNULLError, invalid left hand side in assignment

.5/(1+117.6798000*`J__&psi;`*Units:-Unit(('m')/('s')^2)*6^(1/4)/(`&rho;__s`*((B^3*L+B*L^3)/Pi)^(5/4))) = .5/(1+117.6798000*`J__&psi;`*Units:-Unit(('m')/('s')^2)*6^(1/4)/(`&rho;__s`*((B^3*L+B*L^3)/Pi)^(5/4)))

(5.6)

`C__&psi;` = 2*`&zeta;__&psi;`*sqrt(`K__&psi;`*`J__&psi;`)"(->)"NULL

``

NULL

This damping value is valid for twisting about vertical Z axis

 

NULL

NULL

NULLNULL

(4)

``

NULL

Vertical Motion Considering damping of the Soil

 

For vertical direction the equation becomes that of a lumped mass having single degree of freedom when

deq := m__U*(diff(z(t), t, t))+'C__z'*(diff(z(t), t))+'K__z'*`#mi("z")` = P__0*sin(`&omega;__m`*t)

m__U*(diff(diff(z(t), t), t))+C__z*(diff(z(t), t))+K__z*`#mi("z")` = P__0*sin(`&omega;__m`*t)

(6.1)

NULL

t1 := subs(P__0*sin(`&omega;__m`*t)/m__U = F, expand(deq/m__U));

diff(diff(z(t), t), t)+1.085721853*(G*(L*B/Pi)^(1/2)*m__U/(1-nu))^(1/2)*(diff(z(t), t))/(m__U*(m__U*Units:-Unit(('m')/('s')^2)/(`&rho;__s`*(L*B/Pi)^(3/2))-m__U*Units:-Unit(('m')/('s')^2)*nu/(`&rho;__s`*(L*B/Pi)^(3/2)))^(1/2))+4*G*(L*B/Pi)^(1/2)*`#mi("z")`/(m__U*(1-nu)) = F

(6.2)

NULL

(6.3)

By algebraically manipulating the expression, the form traditionally used by engineers is derived:

t2 := algsubs('C__z'/m__U = 2*zeta*omega, t1)

diff(diff(z(t), t), t)-(-1.085721853*(-G*(L*B/Pi)^(1/2)*m__U/(nu-1))^(1/2)*(diff(z(t), t))*nu+1.085721853*(-G*(L*B/Pi)^(1/2)*m__U/(nu-1))^(1/2)*(diff(z(t), t))+4.*G*(L*B/Pi)^(1/2)*`#mi("z")`*(-Units:-Unit(('m')/('s')^2)*(nu-1)*m__U/(`&rho;__s`*(L*B/Pi)^(3/2)))^(1/2))/((nu-1.)*(-Units:-Unit(('m')/('s')^2)*(nu-1)*m__U/(`&rho;__s`*(L*B/Pi)^(3/2)))^(1/2)*m__U) = F

(6.4)

NULL

t3 := algsubs('K__z'/m__U = omega^2, t2)

diff(diff(z(t), t), t)-(-1.085721853*(-G*(L*B/Pi)^(1/2)*m__U/(nu-1))^(1/2)*(diff(z(t), t))*nu+1.085721853*(-G*(L*B/Pi)^(1/2)*m__U/(nu-1))^(1/2)*(diff(z(t), t))+4.*G*(L*B/Pi)^(1/2)*`#mi("z")`*(-Units:-Unit(('m')/('s')^2)*(nu-1)*m__U/(`&rho;__s`*(L*B/Pi)^(3/2)))^(1/2))/((nu-1.)*(-Units:-Unit(('m')/('s')^2)*(nu-1)*m__U/(`&rho;__s`*(L*B/Pi)^(3/2)))^(1/2)*m__U) = F

(6.5)

This form includes the damping ratio , the natural frequency , and the external forcing term .  Consider only free vibration by setting

gen3 := subs(F = 0, t3)

diff(diff(z(t), t), t)-(-1.085721853*(-G*(L*B/Pi)^(1/2)*m__U/(nu-1))^(1/2)*(diff(z(t), t))*nu+1.085721853*(-G*(L*B/Pi)^(1/2)*m__U/(nu-1))^(1/2)*(diff(z(t), t))+4.*G*(L*B/Pi)^(1/2)*`#mi("z")`*(-Units:-Unit(('m')/('s')^2)*(nu-1)*m__U/(`&rho;__s`*(L*B/Pi)^(3/2)))^(1/2))/((nu-1.)*(-Units:-Unit(('m')/('s')^2)*(nu-1)*m__U/(`&rho;__s`*(L*B/Pi)^(3/2)))^(1/2)*m__U) = 0

(6.6)

NULL

sol1 := dsolve({gen3, z(0) = P, (D(z))(0) = V}, z(t))

z(t) = -(1000000000/1178791942081753609)*Pi*m__U*exp(-(1085721853/1000000000)*Units:-Unit(('s')/('m')^(1/2))*t/(Pi*((nu-1)^2/(`&rho;__s`*L^2*B^2*G))^(1/2)*m__U))*(1085721853*V*Units:-Unit(('s')/('m')^(1/2))*((nu-1)^2/(`&rho;__s`*L^2*B^2*G))^(1/2)*`&rho;__s`*L^2*B^2-4000000000*(L*B/Pi)^(1/2)*Pi*nu*`#mi("z")`+4000000000*`#mi("z")`*Pi*(L*B/Pi)^(1/2))/(Units:-Unit(('s')/('m')^(1/2))^2*B^2*L^2*`&rho;__s`)+(4000000000/1085721853)*`#mi("z")`*G*Pi*(L*B/Pi)^(1/2)*((nu-1)^2/(`&rho;__s`*L^2*B^2*G))^(1/2)*t/((nu-1)*Units:-Unit(('s')/('m')^(1/2)))+(1/1178791942081753609)*(1085721853000000000*V*Units:-Unit(('s')/('m')^(1/2))*Pi*((nu-1)^2/(`&rho;__s`*L^2*B^2*G))^(1/2)*m__U*`&rho;__s`*L^2*B^2+1178791942081753609*Units:-Unit(('s')/('m')^(1/2))^2*P*`&rho;__s`*L^2*B^2-4000000000000000000*(L*B/Pi)^(1/2)*Pi^2*m__U*nu*`#mi("z")`+4000000000000000000*`#mi("z")`*Pi^2*(L*B/Pi)^(1/2)*m__U)/(B^2*L^2*`&rho;__s`*Units:-Unit(('s')/('m')^(1/2))^2)

(6.7)

NULL

NULL

 

Download Analysis_and_Design_of_Machine_Foundations_1.mw

Good Morning Mapleprime Community,

Would anybody please help in the attached worksheet. I'm trying to use the new function in Maple that is the clicable method, but I was having problem in some of my output such as zeta_y and zeta_phi as this two equations are generating an error message.

 

Regards,

Moses

Hello there! Maple 2016.1 sometimes gets crasy about parsing input strings. I managed to capture this behaviour in the attached file. It looks like below. I am not sure what exactly triggers it. It just starts happening all of a sudden. What might be the cause...? 

 

"1 Pi"

Error, incorrect syntax in parse: `;` unexpected (near 4th character of parsed string)

"1 Pi"

 

"Pi/(2)"

Error, invalid semantics "&pi;"

"Pi/2"

 

"1"

Error, incorrect syntax in parse: `;` unexpected (near 4th character of parsed string)

"1"

 

``

 

Download test.mw

In workbook mode I use the Insert>>Paragaph>>Before Cursor to create a text block. I just want to type text into this block by way of comments on what preceded/follows. However, when I type parentheses or <> of (I expect) other stuff that Maple recognises as being parts of mathematical expressions Maple switches to italic and bold and starts generally interefering with my text. In the case of my title I get the result in the picture below. Is there any way to stop Maple doing this so I can type text?

 

Here is my Maple 16 code:

 I expected to get outuput

a [a,b,c]

a [a,c,b]

But I get no output.

Why?

 

 

 

1 2 3 4 Page 1 of 4