Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2016-11-13 09:40:30

evene
Member
Registered: 2015-10-18
Posts: 272

Mathematica 3D Function Graphing

I have the function
Plot3D[Sin[47^{64.9/Cos[90.469+x/y]}]{x,-5,5},{y,-10,10}]
And I want to graph it in 3D. But Mathematica won't graph it. It just doesn't seem to respond. What's going on? Am I doing something wrong with the brackets?

Offline

#2 2016-11-13 10:40:47

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

Hi;

There are 2 immediate problems with your use of the 3DPlot3D command.

] {x, -5, 5}, there should be a comma like this ] ,{x, -5, 5}

and

{64.9/Cos[90.469 + x/y]}, mathematica uses braces like that for parameters and lists but always uses parentheses for order of operations. So that should be (64.9/Cos[90.469 + x/y])

One question:

You wrote 90.469 + x/y which mathematica will interpret as

Is that what you intended? I only ask because 

works in the ranges you gave.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#3 2016-11-13 12:00:00

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

Yes.


Is what I intended...

I was using the online version of Mathematica, and I'm wondering if there is a way to delete your notebook cells...

Offline

#4 2016-11-13 12:03:18

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

Never mind, I figured it out.

Offline

#5 2016-11-13 12:13:00

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

Did you find your errors or was it something else?

Did you get it to plot?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#6 2016-11-13 14:50:07

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

Yes, I got the plot to work! (Yay!)

Although nothing showed up, implying I need to change the domain and range of the plot to get it to actually plot. Any ideas?

Offline

#7 2016-11-13 15:46:22

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

Plot3D[Evaluate[Sin[47^(64.9/Cos[90.469 + x/y])]], {x, -5, 5}, {y, -2,2}]

Use the cursor to rotate it around.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#8 2016-11-14 04:05:54

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

How do you add greek symbols such as

into your plots? Simply entering Theta doesn't work...

Offline

#9 2016-11-14 04:28:17

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

Hi;

Escape key th escape key.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#10 2016-11-14 06:14:01

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

Okay, thanks. I also realized \[Theta] will also work...

Offline

#11 2016-11-14 06:28:02

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

Yes, check the help and you will usually find all you need.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#12 2016-11-14 06:29:43

zetafunc
Moderator
Registered: 2014-05-21
Posts: 2,432
Website

Re: Mathematica 3D Function Graphing

Mathematica SE is also helpful.

Offline

#13 2016-11-14 06:51:05

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

They sure are and I was going to recommend them.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#14 2016-11-14 11:00:29

zetafunc
Moderator
Registered: 2014-05-21
Posts: 2,432
Website

Re: Mathematica 3D Function Graphing

That being said, if even Mathematica is not able to give you an answer (and that's quite common), then your question may end up being migrated to MathSE.

Offline

#15 2016-11-14 11:34:39

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

There is a simple trick to keep that from happening.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#16 2016-11-14 12:12:03

zetafunc
Moderator
Registered: 2014-05-21
Posts: 2,432
Website

Re: Mathematica 3D Function Graphing

Delete and repost?

Offline

#17 2016-11-14 12:15:21

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

That usually gets an admonishment from several members. The best way, is just mention mathematica in the question a couple of times.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#18 2016-11-15 02:39:14

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

I learned that you can factor


However, Mathematica doesn't recognize this input and just spits out
. Is there a way to get Mathematica to factorize this?

Offline

#19 2016-11-15 05:18:48

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

Hi;

Factor[a^4 + b^4, Extension -> Sqrt[2]] // TraditionalForm

Check in the Help for Factor to get much more.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#20 2016-11-15 06:40:57

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

That's so cool!

I now have accomplished factoring

Offline

#21 2016-11-15 06:44:21

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

Factor[x^8 + 4 x^7 - 10 x^6 - 54 x^5 + 9 x^4 + 226 x^3 + 125 x^2 - 301 x - 269, Extension -> Sqrt[5]]

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#22 2016-11-15 07:25:28

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

It then turns out that you can factor the remaining quartics into quadratics by having them factor over the extension of Sqrt[13+4 Sqrt[5]] and Sqrt[13-4 Sqrt[5]].

Offline

#23 2016-11-15 07:31:50

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

Factor[x^8 + 4 x^7 - 10 x^6 - 54 x^5 + 9 x^4 + 226 x^3 + 125 x^2 - 301 x - 269, 
Extension -> {Sqrt[13 + 4 Sqrt[5]] , Sqrt[13 - 4 Sqrt[5]]}]

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#24 2016-11-15 09:51:44

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

Hm... why can't Mathematica not solve

Solve[{c, a+c^2 d, a^2+b+c d^2+c^2 e, a^2 b+ b^2+ d^2 e+c e^2, a^3+6 a b+d^3+6 c d e, a b^2+3 d e^2, b^3+e^3}=={h,f, f^2+g+h^2 t, f^2 g+g^2+h t^2, f^3+6 f g, f g^2, g^3+t^3}]

It just sits there loading! I'm trying to find the unknown variables... Is there something wrong with the syntax?

Offline

#25 2016-11-15 10:01:04

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

Hi;

For one thing, you have 8 unknowns and only 7 equations. Did you leave one out?

Be back after I eat something.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

Board footer

Powered by FluxBB