Questions tagged [wolfram-language]

Wolfram Language is a knowledge based, multi-paradigm programming language. In a first approximation, the Wolfram Language = Mathematica + Wolfram|Alpha + Cloud + more. It's compatible with Mathematica, but it's a significant evolution, including knowledge, deployment and many new ideas.

This tag should be used on questions that pertain to the Wolfram Language created by Wolfram Research.

The Language's homepage can be found here: http://www.wolfram.com/language/

Programs can be written in the language via the wolfram programming cloud: https://programming.wolframcloud.com/app/

100 questions
1
vote
0 answers

Ignore parts of an equation with multiple variable in Mathematica

I want to use the linear version of a somewhat big equation which is outputted by my Mathematica code - For simplicity I will here use the example equation: Test = 3 x + x y + 8 y Now, I want to use only the first order term, so that for x that…
Mac
  • 991
  • 3
  • 11
  • 22
1
vote
0 answers

Using Wolfram Language in Java

I work on a statistical project written on Java. But I have a piece of legacy code written on Wolfram Language. Is there any way to convert this code to Java code? Or how can I use Wolfram Language in my Java project?
Hleb
  • 7,037
  • 12
  • 58
  • 117
1
vote
0 answers

How to change the Range interval in x and y axis in Mathematica

Below is my Data of which I am using Mathematica to plot graph. f[x_] := {x, Sqrt[2/(3 x)]}; ListLinePlot[f /@ {2, 10, 100, 10^4, 10^7}] But If I increase the x axis range beyond 10^7, then It becomes straight line and almost became horizontal…
Bir Nepali
  • 429
  • 1
  • 8
  • 20
1
vote
1 answer

How to declare variable in Mathematica and use them later

I am very new to Mathematica and I was curious about how one can declare variable and use them later in function. I tried to do as below but I'm getting empty result in Graph Here I've declared two variable one and two and tried to use them later…
Bir Nepali
  • 429
  • 1
  • 8
  • 20
1
vote
0 answers

Transforming images using a function

How does one transform an image such that each pixel of the image is moved radially in/outwards by a certain amount that is determined by a user defined function? (In Wolfram Mathematica)
1
vote
1 answer

I would like to plot 2 listplots and one fitting curve in one system of coordinates, but overlay function shows me such a result

plot1 = ListPlot[MNvsAmp, PlotRange -> All, PlotStyle -> PointSize[Large], ImagePadding -> 85, Frame -> {True, True, True, False}, FrameLabel -> {"Time, s", "Number of atoms, 1000"}, PlotMarkers -> {marker1, .035}, PlotLegends -> "gamma = 1.903 beta…
1
vote
1 answer

Wolfram-Cloud/Mathematica, effective working with recursive functions

I am working with Чебышёв-polynomials at the moment, recursive defined polynomials. For the very likely case you never saw them before: f[0,x_] := 1; f[1,x_] := x; f[n_,x_] := 2 * x * f[n-1, x] - f[n-2, x]; Plot[{f[9, x],f[3, x]},{x, -1, 1}] And…
1
vote
1 answer

How to set edges styles of Graph based on it's weights in Wolfram?

I set my custom graph with vertex names like ell, poll, novi etc. (not numbers, but symbolic names). And I set vertexes and edges weights (weights can be positive or negative). I want to set different style parameters of vertexes and edges based on…
Dmitriy Korobkov
  • 867
  • 1
  • 11
  • 25
1
vote
1 answer

Combining OptionsPattern with Pattern Constraints

I would like to define functions with named optional arguments and to restrict those arguments to expressions with specific heads. This is easy to do with unnamed optional arguments. For example: succ1[n_Integer: 0] := n +…
Ivica M.
  • 4,763
  • 1
  • 23
  • 16
1
vote
1 answer

Does RAML support multiple response schemas for the same content type?

In my project all POJO class are extending parent class.As my controller has one method whose return type is parent class but actually it is returning child class here I am using a concept of polymorphism i.e. I am typecasting the child class to…
1
vote
1 answer

Need plot numerous sets of data, however I need to "shift" them so that they all have the same initial y value when t=0

Any Ideas on how I can accomplish this? I am very new to mathematica... My initial thoughts were to import the data from excel in .CSV and determine the max y value in all of the sets of data, and shift the rest of the initial y values to that…
Daniel
  • 11
  • 1
1
vote
3 answers

Why does the same function written in different ways have such different results time?

I've been playing with wolfram language and noticed something: the same function written in different ways works very differently in terms of time. Consider these two functions: NthFibonacci[num_] := If [num == 0 || num == 1, Return[ 1], …
1
vote
2 answers

Defining Your Own Functions with a few procedures in Wolfram Language

I have created a function with one procedure.... Func1[n_] := Table[a[i], {i, n}] which returns Func1[5] {a[1], a[2], a[3], a[4], a[5]} I also have created a function with a few parameters or with a few arguments, few…
1
vote
1 answer

Wolfram Loop Runs Only Once

Hi I am trying a soft version of Analogue to Digital Converter (ADC) on Wolfram Cloud. The code is given below. min =0.0; max =15.0; val=5.0; avg =0.0; ans= ConstantArray[0.0,8]; i=0; while[i<8,i=i+1; avg = (max+min)/2; min = If[avg
Rizwan Asif
  • 125
  • 1
  • 8
1
vote
1 answer

How to write correct wolfram expression?

How to write something like this expression on WolframAlpha to get the correct answer? Solve[Sort[IntegerDigits[2*x]] == Sort[IntegerDigits[3*x]], x] The first possible x value equals to 1782. 2*1782 = 3564 3*1782 = 5364 Which are the same…
AuthorProxy
  • 7,946
  • 3
  • 27
  • 40